Documented main method.