Removed debugging println statements.
Added error println statements.