Another function that needs to wait for the uithread to get called.