Added a queue and threading to speed up import process