Creating hash table functions