Repetition functionality added