Initial import of code from Sourceforge