Unnecessary print statements had been removed.