Update the set batch function.