Update Main Program