Remove unneeded variables in export, transfer structure to run.