Added repeat option.