Pass max_disc_term as kernel parameter.