HOULTON — A psychologist who examined a Maine man who killed two men and a 10-year-old boy says he was delusional at the time of the killings on June 22, 2010.

Dr. Kathryn Thomas testified on behalf of the defense during the trial’s second phase after Thayne Ormsby was convicted of three counts of murder. Ormsby is using an insanity defense, and experts are testifying this week about his mental state at the time of the fatal stabbings in northern Maine.

Thomas testified in Houlton that Ormsby was out of touch with reality, thinking he was ridding the world of a “bad man” and somehow boosting his resume as an “assassin.”

Ormsby, who’s 23, confessed to killing 55-year-old Jeffrey Ryan, Ryan’s 10-year-old son, Jesse, and a family friend, 30-year-old Jason Dehahn, at Ryan’s home in Amity.