Finished main method