Sort of working parser