Completed sum, prod, accumulate