In cases where the prosecution believe it will be difficult to get a conviction, they might agree to a plea bargain allowing community supervision for a long period.