A Leavenworth prison guard has been sentenced to three years in prison for smuggling tobacco and rolling papers into a federal penitentiary.

Marc Buckner had been a corrections officer at the U.S. Penitentiary in Leavenworth since 1995. At some time between 2005 and 2014 — Buckner hasn’t said when — he began smuggling tobacco into the medium-security prison.

Within his work shoes, Buckner carved two handmade insoles where he stuffed Bugler brand tobacco and rolling papers, according to a plea agreement. He received $750 from inmates each time he smuggled into the prison, which was once or two per month.

A six-ounce can of Bugler tobacco sells online for about $30. In exchange for their $750, inmates would also receive 230 rolling papers, worth about $3.

On March 12, 2014, Buckner was stopped by FBI agents on his way to work. He had been under surveillance. The agents found the handmade insoles, tobacco, rolling papers and $1,521 in cash.

Buckner, 47, pleaded guilty in November to one count of a public official accepting bribes.