A man facing federal firearms charges in Iowa who attempted to escape prosecution by fleeing to Cuba has entered plea agreements with U.S. prosecutors.

Court records say Shawn Michael Wegmann signed plea agreements last week for failure to appear and for four firearms counts. He faces up to 45 years in prison.

Wegmann admits to stealing more than 30 guns in burglaries last year in Iowa and Illinois. He had previous felony convictions and was barred from possessing guns.

He failed to appear in court for a plea agreement hearing in October. He was found a week later in Havana, Cuba. The U.S. Marshals Service says he was the first fugitive to be returned to the U.S. by the Cuban government since diplomatic relations began a year ago.