Only set values if they differ from current ones.