COLUMBUS (AP) — A former Highway Patrol officer in Ohio accused of stalking a subordinate’s wife after their affair ended has been sentenced to two years in prison.

The Columbus Dispatch reports former Marietta post commander William Elschlager apologized as he was sentenced Thursday in federal court, months after pleading guilty to a cyberstalking charge.

Prosecutors say the 49-year-old Elschlager called and text-messaged the woman, followed her vehicle, tracked her via GPS and misused his law enforcement position to stalk and intimidate her.

Defense attorney Sam Shamansky had pushed for a shorter sentence, saying the fired trooper is ashamed and remorseful and won’t be able to work in law enforcement again.

Elschlager previously was sentenced to a month in jail on a theft conviction for stealing a gun seized in another investigation.