Bring in the implementation of KernelReduce