Update function updated.