Implement summation.