Finally got the parser working