Create Select function for importing