Handle the possibility of hashes colliding