Corrected main entry point.