Added n repeats option to GUI