Added hash map iterator and related functions.