Former police chief David Strang has been appointed the next chief inspector of prisons.
Mr Strang, who was the head of the former Lothian and Borders force, will take over as HM chief inspector of prisons for Scotland on 16 June.
He succeeds Brigadier Hugh Monro in the role.
The chief inspector of prisons for Scotland examines prisoner treatment and conditions in the 16 penal establishments in Scotland, reporting findings to ministers and laying an annual report before the Scottish Parliament.
Justice Secretary Kenny MacAskill said: “David Strang is ideally placed to take on this post. He has extensive experience of the criminal justice system and what works to reduce reoffending.”
Mr Strang added: “I am delighted to have been appointed as HM chief inspector of prisons for Scotland.
“Prisons play a very important part in an effective criminal justice system.
“I look forward to the challenges which lie ahead and to making a positive contribution to justice in Scotland.”
Mr Strang will initially be appointed to a three-year term with a £65,000-a-year salary, which has the possibility of extension.