Make macro recording work with Exporter