Patch scripts