Added infinite loop utils