Update objective.