Button to generate repeats