Update the main program and data