Add loopResultContext function.
Bring some long-dead rules back to life.