Added update method.