On line 174 the `inThread` parameter is used, whereas the comment seems to imply that instead the system events need to be submitted in the same thread. Isn't this comment in conflict with the code?