Update main method