Reactor controller