Functions to extract information from hash