Removed unused stuff in main.