Remove unused methods in main