Add a save method for data collection.