President Trump said Wednesday he would consider sending the suspect in Tuesday's New York City terror attack to Guantanamo Bay, Cuba, to prevent his case from languishing in civilian court.

Trump responded to questions from reporters about whether the suspect should go to Guantanamo Bay to await a military trial by admitting he would consider it as an option.

"I would certainly consider that, send him to Gitmo. I would certainly consider that, yes," Trump said.

Sayfullo Habibullaevic Saipov, 29, is accused of ramming a rented truck into a group of pedestrians in New York City on Tuesday, killing eight people and wounding 11 others. He pledged allegiance to the Islamic State in notes found around the scene of the attack.

"We also have to come up with punishment that's far quicker and far greater than the punishment these animals are getting now," Trump said Wednesday before a Cabinet meeting at the White House.

"They'll go through court for years," Trump said of terror suspects. "We need quick justice and we need strong justice."

"What we have right now is a joke and it's a laughing stock and no wonder so much of this stuff takes place," he added.

Trump noted he would work to scrap the immigration program that allowed the terror suspect to enter the U.S. legally in 2010.

"I am today starting the process of terminating the Diversity Lottery Program. I am going to ask Congress to immediately initiate work to get rid of this program," Trump said. "It sounds nice, it's not nice. It's not good."

The president also criticized the practice of "chain migration" that allowed the terror suspect to bring members of his family into the country with him.