Returns appropriate value from hash