Repair scripts