Patch script