Seems to work successfully with the example measure! Will move to grammar.py now and test further.