Plea deal to avoid jail time