Rewrote hash function to incorporate more of the name in the hashing.