Added main method.
Master update 2.