Adding support for flags in the parser code.