Added runReactor function