Checks for infinite loops, not configurable, output not correct.