Making the hashing more consistent