A case involving a man stated to be of unsound mind recently prompted the Madras High Court to detail the procedure to be followed by criminal courts so that accused persons suffering from a mental illness are relieved of the misery of being an indefinite undertrial (Kaliyappan v. State).