Moved hash function back into hash object