Add the export functionality