Converted from http://sourceforge.net/projects/ccp1gui/