The tree_after hook