Federal prosecutors charged another state lawmaker, Assemblyman Joseph Errigo, with corruption for allegedly taking a bribe to promote an upstate development project, according to court files unsealed in Rochester on Wednesday.

The 80-year-old Republican was elected in 2016 to represent 133rd Assembly District, which includes many suburban and rural communities south of Rochester.

He lost his primary bid for reelection to political newcomer Marjorie Byrnes, but remains on the ballot on third party lines.

Prosecutors charged that Errigo took a $10,500 bribe to introduce a bill during the last legislative session to aid the unidentified project, but the bill went nowhere.

When confronted by the FBI in May, the octogenarian confessed, court papers say.

Republican Party officials picked Errigo to run in the heavily Republican district in 2016 after his predecessor, Bill Nojay, committed suicide while under investigation for fraud.

This is Errigo’s second stint in the capital. He previously represented nearby communities in the 130th Assembly district from 2000-2010.