Improving the method to invoke the parser and renderer