Added update() method.