The Franklin County man charged with decapitating his mother in March 2017 was found not guilty by reason of insanity.

Oliver Funes-Machado, 20, is accused of beheading his 35-year-old mother on March 7, 2017, then walking out of their home with her head in one hand and a butcher knife in the other to wait for deputies to respond to the 911 call he made.

On Monday, a judge ruled that although Machado is now competent to stand trial, he was insane at the time of the crime. He will be committed to a mental health facility in the state.

Machado told dispatchers he had killed her “because I felt like it,” according to an investigator’s sworn statement.

“He believed he was directed by God to harm his mother so that she could go to heaven, and as such, believed that his action was not inherently wrong,” said Superior Court Judge Henry Hight Jr.

Machado also told a dispatcher that “he stabbed her ‘like 8 times’ and left the knife in her mouth,” according to the sworn statement by Det. A.R. Roberts of the Franklin County Sheriff’s Office.

“Much of his psychosis had aspects of hyper religiosity marked by hallucinations that God was instructing him to do things, or alternatively that there were evil spirits or dark shadows possessing his mother,” said forensic psychiatrist Dr. George Corvin.

The teen’s 4-year-old sister and 2-year-old brother were in the house, the statement says Machado told dispatchers.

Prosecutors said in May 2017 they would not seek the death penalty.

The teen’s attorney, Boyd Sturgess, said at the time that his client is a “very unwell person” and that “mental health is going to be a key component” in the case.

“I think just from what we’ve seen it clearly appears to be the kind of a case that has a serious component of mental health disorder of some sort. I am not a doctor, and neither is the district attorney. Clearly, this is not your run of the mill occurrence,” he said.

Corvin believes Machado is most likely schizophrenic.

“When I first saw him he admitted that he was hearing a voice telling him that he should kill me and that voice warning him that the correctional officer that was guarding us was going to shoot me, so you could imagine how tormenting it would be to constantly be exposed to that experience,” Corvin said.

Machado said he was sorry and that he hopes God will forgive him. He will be committed to a mental health facility in North Carolina.