Latent Loop Detection Logic