Finished off the ImportSelected function