Update function now work.