Add logging to mode parser.