Added script repair operation