Added an option to save the visualization data file.