Removed the double call in main