Adding more thread logic to hash trees