Removed unused variables in main.