Added the main method.