Adding main method.