According to the Canadian Criminal Code, a defendant can be found not criminally responsible if they committed a crime "while ...