First version of parser