Prepare for export.