Added export and import functions