Add update method for objects.