Add hash utility method