Isolating loop behavior