Use returned depth in hash table