Moved cumulate into aggregate file