A 31-year-old man from the Springfield area has been indicted on charges that he robbed two banks.

Matthew Martin was arraigned Tuesday before Judge John Conroy, who ordered him back into custody and detained until his trial. Martin could face up to 25 years in prison on each of two counts of armed robbery, according to a news release from the Department of Justice.

Martin is charged with robbing a People’s United Bank in Brattleboro on Dec. 14 using a BB gun that resembled a firearm and a device that appeared to be a bomb.

He is also accused of robbing Heritage Family Credit Union in Ludlow on Dec. 21 using just the BB gun. Martin surrendered in December after the U.S. Marshals Service named him “Fugitive of the Week” due to outstanding warrants in both New Hampshire and Vermont, according to the news release.

Authorities are still investigating other robberies during 2015, according to the news release.

This is not the first time Martin has appeared in court charged with robbery. In September he pleaded guilty to three counts of robbery. He was to be sentenced Dec. 1 but didn’t show up in court.