CDR correction script