Added a #repeatedly function