WIP - Digesting a tree