Could you remove the debug printlines you've added?