Updating hash