See the PDF file for details.