Call main at end of file.