Changed AI to include Hashes for Tree Calc