Callback for data change.