Add update method to HStruct