Reactor code