Added update implementation.