Add update method.