Sleepwalking can get alleged criminals off the hook.
A judge ruled that a Calgary man, who was sleepwalking when he beat a prostitute with a bat, was not guilty because he had a mental disorder.
Wilkins ruled Gary Yuen was in a state of parasomnia, in which a person commits involuntary acts while sleeping, according to the Calgary Sun.
The prosecution claimed Yuen was lying when he said he didn't remember striking the $1,000-a-night prostitute.
On the last day, the escort - who was not named - woke up to Mr Yuen, 48, beating her with a baseball bat before he choked her unconscious. When she regained consciousness, Mr Yuen was having sex with her.
The woman managed to escape from Mr Yuen’s home, bloodied and naked. He was still chasing her when someone in a passing vehicle picked her up.
The judge ordered Yuen to undergo a psychiatric evaluation before a board determines what action to take to prevent another incident from happening.