Enhanced the function that creates the export list.