Update set function.