Work with probation services when a prisioner is to be released.
Lawyers may ask for prison visits to have legal consultations with client.
Defendants denied bail by courts and police are remanded to prison.
Judge and courts decide prison term for offenders.