New set function.