Update hash.