Make more clear code. Merge trees in grammar.