Add max_candidates.