repetitions() changed to num_repetitions() for consistency/clarity