Implemented the repeat action