Added internal logging to the parser.