Added hash_lookup function