Generic define for hash updates