Working on the main program