Added functionality to import and export data