Exposing the update function