A former deputy was arrested Tuesday morning for allegedly plotting to smuggle chewing tobacco and marijuana edibles to inmates in the Boulder County Jail.

Tyler Mason, 33, faces charges for conspiracy to introduce contraband and official misconduct. He was fired from the sheriff’s office on Oct. 12.

The sheriff’s office says on Sept. 23, an inmate told a staff member that another inmate had made arrangements for Mason to smuggle contraband into the jail.

Investigators say the plot was conceived by Mason and an inmate that he was childhood friends with. The former deputy had been having money troubles.

The allegations prompted an internal investigation and on Sept. 28, investigators saw Mason met with a woman in Longmont who gave him $160 for the purchase of chewing tobacco and edibles.

That woman had agreed to cooperate with the investigation, and knew authorities were watching.

Mason was put on administrative leave shortly thereafter. He had first been hired as a non-P.O.S.T. certified deputy in the Jail Division in December 2014.

The sheriff’s office says Mason has been booked and since has been released from the Boulder County Jail. He’s set to appear in court on Dec. 1.