Added initial code for legacy parser.