Update Main method