Changed update method