Changes to make hashing more efficient.