Original code for cMonkey as published in 2007.