Adding State update detection to Repetition.