Patch converter script