Implemented repair command.