Changes the implementation of the function update.