Added hash initialization for tree.