Implemented repeat command