Update use of reduce.