Allan made changes to Import function.