Adds simple main method.