Add ability to set minimum number of repeats.

Added feature to set both a minimum and maximum number of repeats.