Removed most of the debug printouts and comments