A Mississippi sheriff who worked undercover with the FBI for three years helped along a sting operation resulting in the indictment of four Louisiana businessmen this week, according to authorities.

The four businessmen are accused of a years-long scheme to funnel thousands of dollars to the Commissioner of Mississippi Department of Corrections and Kemper County Sheriff James Moore—but Moore turned over evidence to the feds, leading to the indictment.

Michael LeBlanc Sr., Michael LeBlanc Jr., Tawasky Ventroy and Jacque Jackson have all been charged with counts of conspiracy, paying bribes, and attempting to pay bribes.

“I want to personally thank Kemper County Sheriff James Moore for coming forward and working with us to catch those who violate our corruption laws,” said Mike Hurst, the U.S. attorney for the Southern District of Mississippi.

The four were all associated with the Brothers Commissary Services and American Phone Systems companies, which are located in Louisiana but operate in Mississippi. Their bribery attempts allegedly tried to secure big commissary contracts and other government deals in jail and detention facilities.

Federal investigators allege that the scheme lasted between 2012 and 2015.

Christopher Epps, the former Mississippi DOC commissioner, was allegedly one of the recipients. Ventroy brought a $2,000 cash bribe to Epps on Oct. 21, 2014, according to the indictment. A promise for a further gift with a value of $5,000 was made by LeBlanc Sr. to Epps, authorities said.

Epps was sentenced last year to nearly 20 years in prison.

Moore, the sheriff, instead volunteered help to authorities.

On Dec. 8, 2014, in a men’s room of the Golden Nugget Hotel and Casino in Biloxi, Moore was allegedly presented with a total of $2,000 in chips. Jackson presented the four $500 chips, according to the indictment; but it was LeBlanc Jr., who provided the chips intended for the sheriff. The restroom was chosen because it did not have surveillance cameras, according to authorities. Moore was promised a further $5,000 of value to influence the awarding of inmate telephone and commissary services at the Kemper County Regional Correctional Facility.

Each of the four are charged with two of the three counts; and each face maximum sentences of five and 10 years each if convicted of both.