Main loops detected and commented