That hash function was already there.  I moved it up a few lines.  I can change the hash function as well if you like...