Add repetition code