Added generatepatch script