Added tree parsing.