Re-implement reduce.