I think the @value += value syntax would be a little clearer here. It could be used for all of these aggregation functions. What do you think?