Forensic psychiatry is a subspeciality of psychiatry and is related to criminology. It encompasses the interface between law and psychiatry. According to the American Academy of Psychiatry and the Law, it is defined as "a subspecialty of psychiatry in which scientific and clinical expertise is applied in legal contexts involving civil, criminal, correctional, regulatory, or legislative matters, and in specialized clinical consultations in areas such as risk assessment or employment." A forensic psychiatrist provides services – such as determination of competency to stand trial – to a court of law to facilitate the adjudicative process and provide treatment, such as medications and psychotherapy, to criminals. Court work Forensic psychiatrists work with courts in evaluating an individual's competency to stand trial, defenses based on mental disorders (e.g., the insanity defense), and sentencing recommendations. The two major areas of criminal evaluations in forensic psychiatry are competency to stand trial (CST) and mental state at the time of the offense (MSO). Competency to stand trial Competency to stand trial (CST) is the competency evaluation to determine that defendants have the mental capacity to understand the charges and assist their attorneys. In the United States, this is seated in the Fifth Amendment to the United States Constitution, which ensures the right to be present at one's trial, to face one's accusers, and to have help from an attorney. CST, sometimes referred to as adjudicative competency, serves three purposes: "preserving the dignity of the criminal process, reducing the risk of erroneous convictions, and protecting defendants' decision-making autonomy". In 1960, the Supreme Court of the United States in Dusky v. United States established the standard for federal courts, ruling that "the test must be whether the defendant has sufficient present ability to consult with his attorney with a reasonable degree of rational understanding and a rational as well as factual understanding of proceedings against him." The evaluations must assess a defendant's ability to assist their legal counsel, meaning that they understand the legal charges against them, the implications of being a defendant, and the adversarial nature of the proceedings, including the roles played by defense counsel, prosecutors, judges, and the jury. They must be able to communicate relevant information to their attorney, and understand information provided by their attorney. Finally, they must be competent to make important decisions, such as whether or not to accept a plea agreement. In England, Wales, Scotland, and Ireland, a similar