Added modify-tree factory