Adding methods for importing and exporting data.