Add macro for import and export