IDAHO CITY, Idaho (AP) — A former money manager for a small Idaho school district has pleaded guilty to misusing $50,000 of public funds.

KTVB-TV reports that Robb Greiner wrote himself checks from the Horseshoe Bend School District bank accounts and transferred money into his personal accounts between 2011 and 2013. School officials discovered the embezzled funds after Greiner left the position. Fourth District Judge Patrick Owen ordered Greiner to spend six months in jail on Thursday.

Boise County Prosecutor Jolene Maloney says Greiner was earning $200,000 a year while working for the school and another company. At the same time, Maloney said that the school laid off three employees while the money was being stolen. Greiner apologized Thursday, adding that he was facing financial pressure and was behind on his house payments.