Add function to generate a given number of reps