We still need a viable alternative that is both a deterrent and allows for rehabilitation and reintegration. I think things like prison, corporal punishment, exile, etc., are good deterrents but they're horrible at reintegration which is why prisons have such a high recidivation rates. On the other hand, community service isn't a high enough deterrent and flat fines disproportionally affect poor people.