Added simple logging to the parser.