The master loop can now happen on the GUI thread using a QTimer.