Added export and import functionality