Run processing in main thread instead of widget.