Use my own implementation of reduce.