Removed printf debug code