Now generates grammars after applying all four filters