Updated repetition implementation.