Modify output dataset to be tidy.