Checking loops.