Add looping divergence detector