Encapsulate primitive in Worker instead of MainWindow.