This was needed by the `thread_ui` tests btw