**For video of the suspect’s arrest, watch the video above.

NEW YORK (AP) — The man charged in this week’s Brooklyn subway attack has been ordered held without bail, with prosecutors saying he terrified the “entire city.”

Frank James was arrested in Manhattan on Wednesday, a day after the attack, and made his first appearance in federal court Thursday. Authorities say he unleashed smoke bombs and dozens of bullets in a train full of morning commuters, shooting 10 people. All were expected to survive.

Investigators are continuing the examine the 62-year-old’s possible motive.

James is charged with a federal terrorism offense, which pertains to violent attacks on mass transit systems. There is no evidence connecting him to terror organizations, international or otherwise, at this time, authorities say.

Authorities called the shooting premeditated and calculated, saying that James wore a hard hat and construction worker-style jacket as a disguise and then shed them after the gunfire to avoid recognition. Prosecutors suggested James had the means to carry out more attacks, noting that he had ammunition and other gun-related items in a Philadelphia storage unit.

A lawyer appointed to represent him didn’t immediately respond to requests for comment. James didn’t respond to shouting reporters Wednesday as he was led from a police precinct into a car headed for a federal detention center.

Authorities say a trove of evidence connects James to the attack. His credit card and a key to a van he had rented were found at the shooting scene. Officers also found the handgun they said was used in the shooting; tracing records show James purchased the gun from a licensed gun dealer in Ohio in 2011.

Investigators were examining many hours of videos that James posted on social media, including one a day before the attack, in which he delivered profanity-laced diatribes about racism, society’s treatment of Black people, homelessness and violence. He also talked about his history of psychiatric treatment, and he complained about New York’s mayor is dealing with homeless people on subways and with gun violence.

James was born and raised in New York City but had moved to Milwaukee. He’d recently left Wisconsin and had briefly lived in Philadelphia.