Removed print statements and unused function