Update Main Script