Added support for setting pre-tree prefixes on ids in the tree.