Added maxRepetitions