Parser works but is very slow