Clean up Main file.