Adding functionality to re-root trees.