Removed (or commented out) the diagnostic print statements from the code.