Generating all sums.