Make helper functions for iterating hash table