Added logic to associated attributes with selections and export.