This should be before the for loop for data from multiple files to be aggregated together.