Now able to save to a csv file.