Updating the grammar model to make the filtering easier.