--- Update function Added ---