Added repetition and printing.