Saving clusters to file.