Clean up main.