Set up the main method to laod from an app class.