Creates the main