Competency restoration procedure