Use isEqual to check if values change