Working version of parser