Updating settings only if they have changed.