Add update method and modify dependency