Part of Amino Project Java Code from http://sourceforge.net/projects/amino-cbbs/