Updating the objective.