Only fire the callback if the value has changed.