PINEDALE, Wyo. (AP) — A judge in Wyoming sentenced a man to 18 months of probation for hitting a wolf with a snowmobile before taping the wounded animal’s mouth shut, bringing the creature into a rural bar, then killing it.

District Judge Richard Lavery in Pinedale sentenced Cody Roberts, 44, to probation on Wednesday, in accordance with a plea deal Roberts reached with prosecutors in February.

Lavery also fined Roberts $1,000 and ordered him not drink alcohol, enter a bar or liquor store, nor hunt or fish while on probation.

Roberts told Lavery at his change-of-plea hearing in March that he regretted what he did and apologized to his family and community.

Roberts avoided as much as two years in prison and a $5,000 fine by pleading guilty. He initially pleaded not guilty and a trial was set for March.