Add a way of getting a tree ID