Added main method.