Added option for repetitions