Mandatory sentence history for certain offenses