A Manhattan federal judge on Thursday sentenced former New York City Police officer Joseph Guagliardo to 27 months in prison for conspiring to embezzle hundreds of thousands of dollars from New York’s oldest credit union.

Guagliardo, who served on Municipal Credit Union’s advisory board, was accused last October of diverting the funds to a private security company and a nonprofit organization that were both under his control. He has also admitted to supplying the credit union’s former CEO, Kam Wong, with illegal painkillers, and pleaded guilty to one count of embezzlement earlier this year.