Rewrite export command