OAKLAND, Calif. (AP) — A judge has ruled that a 29-year-old parolee with a history of mental illness is mentally fit to stand trial for the slaying of a woman on an Oakland subway platform.

Alameda County Superior Court Judge James Cramer said Tuesday that John Lee Cowell will face trial starting in January for the unprovoked stabbing death of 18-year-old Nia Wilson in July 2018.

Cowell has been charged with murder and attempted murder for the attack on Wilson and her sister, Letifah, 26, who was wounded in the attack.

The trial had been in legal limbo as authorities sought to determine Cowell’s mental competence.

At a hearing Monday, Cramer said Cowell was not cooperating with doctors appointed last month to evaluate him, for the latest in a series of evaluations. The judge said he understood Cowell has a history of mental illness but that doctors who had previously examined him felt he was “malingering” to avoid standing trial.

The judge recessed the hearing, saying he needed 24 hours to reach his decision. He announced his ruling Tuesday.

Wilson’s death was one of several violent or fatal attacks on Bay Area Rapid Transit (BART) lines that connect San Francisco to the cities of Berkeley, Oakland and others.

BART has announced new safety measures and installed thousands of security cameras as part of an effort to increase safety.

Prosecutors have said they will seek a life sentence against Cowell and are investigating if he was motivated by racial hate when he killed Wilson. The women are black, and he is white.