Added repair method.