Fixed issue #14. Support for tree recomputation.