Changed update detection logic.