Threaded the import so it doesn't lock the UI.