Running in separate thread. Broken.
Fix for cross-thread operation.