The former agent in charge of the Seattle office of the federal Bureau of Alcohol, Tobacco, Firearms pleaded guilty to taking money from a fund for undercover informants.

James Contreras pleaded guilty in federal court Wednesday to one count of forgery in a plea deal in which 29 other charges were dismissed.

He had been accused of taking nearly $20,000 intended for informants and gun buys. He pleaded guilty to forging a name on a $700 voucher.

The Seattle Times reports the 52-year-old Maple Valley man faces up to five years in prison when he is sentenced in May.

Conteras resigned in 2012 while under investigation for his relationship with an informant.