Added run-length encoding to the parser.