Removes unsused variable warning during aggregation