It is better to treat addicts before they get caught up in the legal system but if they are already caught up in the system, this is a sensible solution.