Update Main Code