Adding update handler.