BRATTLEBORO (AP) -- A longtime Vermont Medical Practice Board investigator who had more than 550 firearms seized from his home is going to avoid prison after pleading guilty to federal gun and tax charges.

Phil Ciotti, 57, of St. Johnsbury pleaded guilty to the charges Tuesday in Brattleboro.

Ciotti agreed to surrender a federal firearms license and sell his guns.

Agents seized the guns in 2011 from Ciotti’s home, where he ran a business known as North Country Ordnance.

Ciotti admitted he filed a false federal income tax form in April 2010 and sold two AK-47s in April 2010, without conducting proper background checks.

Defense lawyer David Sleigh asked the judge to withhold formal judgment to ensure there were no "no adverse pension consequences" for Ciotti although he said none of the alleged conduct involved Ciotti’s state job.

Sentencing is set for May.

Ciotti submitted his resignation Monday to take effect on Dec. 31.

The former law enforcement officer with the St. Johnsbury Police Department and the Caledonia County Sheriff’s Department became an investigator for the Medical Practice Board in November 2001.