Added documentation for repeat