Made the Reactor to run inside a thread, in order to be able to use it inside other apps