Update state of LOOP macro.