Created main method.