Added set hash function