Add some code to debug export.