Added detection and abortion of rules that go off screen