Parser work on valgrind. Will probably be reverted later.