New callback onUpdate added.