First version of parser.