Adding update method