A review of how sex offenders are managed was announced today in the North.
Chief Inspector of Criminal Justice Dr Michael Maguire will carry out the investigation after controversy over the management of paedophile brothers James and Owen-Roe McDermott, from Donagh, Co Fermanagh.
The pair abused children in Donagh over a 30-year period, but were judged mentally unfit to stand trial. They then returned to live in the village.
Justice Minister David Ford announced the investigation today.
"It is clear to me that there is a distinct lack of clarity surrounding the management of the case involving these brothers," he said.
"I am very conscious that the way in which this information has come into the public domain has contributed to the distress of the victims and their families, and it is for that reason that I have asked Dr Maguire to carry out a detailed investigation."
The chief inspector will not examine the detail of the McDermott case itself.
Mr Ford added: "What I am asking him to do is take a detailed look at the way in which such cases are managed by the justice system.
"It is vital that the public have confidence about the way in which these matters are dealt with and I am determined that lessons are learned by all of the agencies involved."
He asked Mr Maguire to provide him with an interim report by the end of October.
SDLP Stormont Jjustice Committee member Conall McDevitt said senior management arrangements in the Courts and Tribunals Service should be reviewed.
He added that the Justice Minister had sent a letter to members of the committee today.
"Today we are told the Sexual Offences Protection Order was wrong, that there were mistakes in the Bill of Indictment and that the notification documents were not served on the McDermott brothers," he said.
"This all points to systemic failure in the court service's management of these cases.
"It is not good enough for the Justice Minister and senior civil servants to say that these mistakes had no material impact on the management of the McDermott case.
"It is all the more serious given these are sex offence cases and have direct implications for the safeguarding and protection of children.
"It is essential that David Ford takes urgent steps to get to the cause of these failures while ensuring that child protection and safeguarding is taken seriously and placed at the heart of everything his department and the Northern Ireland courts service do."