Switch from init to main method