Tidy up the exported file