Defined the main entry point.