Add runInThread to IModule