Update method implementation.