Added a new interface for the update method