Safeguarding against miscarriages of justice