Outputs a final data set