Original source code. All credits go to Van Jacobson and Steve McCanne who were the original authors of this code, and to Stephen Casner and Cengiz Alaettinoglu who have contributed code to this project.