Delegated the main to the GUI