Added save functionality (to csv).