Uncomment savePatches lines (previously commented for development purposes)