Removed printf debugging messages