Extracted hlist_head for future use, bug fixes