Add main method