Removed unused function and print statement.