Replaced deprecated hashing functions.