Added method to save individual chunks to file