Modified exporting routines.