Add GetPatch and SetPatch method