This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

Please enable Javascript to watch this video

OKLAHOMA CITY - On Wednesday, a judge refused to accept a guilty plea from a man accused of beheading a co-worker in 2014.

Judge Lori Walkley listened to testimony all day last Friday, as psychologists on both sides argued over Alton Nolen's mental competency.

Wednesday, Walkley announced her decision not to accept Nolen's guilty plea.

She worried accepting it would not survive an appeal.

"I've given it a great deal of thought and a great deal of prayer," Walkley told the courtroom Wednesday. "Because, I thought I could use divine intervention."

She said she did not want the victims and their families to go through multiple trials.

Walkley wants Nolen to undergo a competency exam at a state facility in Vinita so the case can move forward, promising things will proceed as quickly as possible.

"They're entitled to justice," Walkley said of the victims and their families. "While it may not be swift, it will be sure."

Judge Lori Walkley wants #AltonNolen to undergo another competency exam before proceeding. @kfor — Lorne Fultonberg (@LorneFultonberg) August 17, 2016

Prosecutors said they were disappointed in the judge's decision, noting she initially ruled Nolen was competent to stand trial.

"She had a gut feeling that he was competent, but basically she wanted to make sure and resolve all doubts," said Cleveland County District Attorney Greg Mashburn. "She's going to make sure she has another set of eyes look at it and take that in consideration."

Nolen is charged with murder and five other felony counts, after allegedly killing Colleen Hufford in September 2014.

Police said Nolen returned to Vaughan Food Services shortly after he was fired and attacked with a butcher’s knife.

Nolen wanted to plead guilty in Cleveland County Court in February, but the judge pushed things off until May 20 to make sure he fully understood the consequences of his plea.

Walkley pushed things off again until last Friday, when psychologists and lawyers argued Nolen's mental state.

Nolen has refused to cooperate with his attorneys, who said he has lumped them into a sort of legal conspiracy with the judge.

The defense tried to frame its client as mentally incompetent, while prosecutors called Nolen difficult to deal with but competent.

"We firmly believe he's been competent all along," he said. "I see no reason why, if he comes back competent, which I assume that he will, that the judge would accept his guilty plea, and we could go on with the sentencing."

Garvin Isaacs, a defense attorney and president of the Oklahoma Bar Association, believes the judge made the correct decision.

"She did the right thing, and that's what a judge is supposed to do," he said. "Under our law, everyone is entitled to a fair and impartial judicial system, a fair and impartial judge and a fair and impartial jury. And, that's what Judge Walkley is doing, and we need to admire her for upholding her oath of office."

Isaacs said it is "really unusual" for a judge to reject a guilty plea but, in this case, a re-examination is worth it.

"If the judge thinks there needs to be an evaluation, justice requires it be done," he said. "In our country, people who are mentally incompetent who do not understand right from wrong are not criminally culpable. We need to lock them up in a mental hospital to protect the public."

There is no timetable for Nolen's next competency evaluation.

Once a doctor makes a ruling, Walkley could accept Nolen's plea, proceed to a trial or send Nolen to stay in a state medical facility.

Walkley: "I have given this a great deal of thought and a great deal of prayer because I thought I could use divine intervention." @kfor — Lorne Fultonberg (@LorneFultonberg) August 17, 2016

Walkley: Gut feeling won't let her sentence #AltonNolen to death because she does not think accepting plea would survive appeal. @kfor — Lorne Fultonberg (@LorneFultonberg) August 17, 2016

Walkley: I don't want to put victims and families through multiple trials (appeals). @kfor — Lorne Fultonberg (@LorneFultonberg) August 17, 2016

Walkley on victims and families: "They're entitled to justice. While it may not be swift, it will be sure." @kfor — Lorne Fultonberg (@LorneFultonberg) August 17, 2016