Implemented Repairing