Removed debugging or unused code