Obtain candidate list in main thread to avoid cross thread access to gui component. Closes #1783.