Now to_new_tree closes the file