Reactor tested. Some bugs fixed.