Working parsing
Fixed parser bug
Finally working code