Finished main program