Tested processing lib. Fixed bugs.