Add option and code to save a csv file.