Add max trials.