NEW YORK (AP) — A man charged with shooting up a New York City subway train last month in an attack that wounded 10 people pleaded not guilty Friday to terrorism and other charges. Frank James, 62, entered the plea in federal court in Brooklyn on Friday.

U.S. District Judge William F. Kuntz began the proceeding by asking, “How are you doing today?”

“Pretty good,” James responded.

Asked about his educational background, James said he attended public schools in the Bronx before earning a GED. He said he also attended some trade schools.

James faces charges of committing a terrorist attack or other violence against a mass transportation system and discharging a firearm during a violent crime. Both counts carry a maximum sentence of life in prison.

The defendant was arrested on April 13, about 30 hours after authorities say he drove from Philadelphia to unleash smoke bombs and dozens of bullets on a train full of morning commuters as it approached a Brooklyn station. The shooting victims ranged in age from 16 to 60. All survived.

Authorities said James’s bank card, cellphone, and a key to a van he had rented were found at the shooting scene. Police also said they found the 9mm Glock semiautomatic handgun used in the shooting and traced it to James.

Defense attorney Mia Eisner-Grynberg had cautioned at the time of James’ arrest not to rush to judgment and noted that James alerted police to his whereabouts. He was arrested in Manhattan’s East Village after he called a tip line saying he was at a fast-food restaurant there.

Eisner-Grynberg declined to comment outside court Friday. James, who’s being held without bail, is due back in court on July 25.

The motivation for the attack remains unclear. In numerous rants he posted on YouTube, James, who is Black, made bigoted remarks about people of various backgrounds, railed against New York Mayor Eric Adams, and complained about mental health care he received in the city years ago.