DES MOINES, Iowa (AP) — The state of Iowa is settling a lawsuit filed by three men who worked at the Department of Revenue and claimed they were harassed by another male coworker who followed them into the restroom and secretly videotaped them.

The lawsuit was filed by Daniel Wagner, Lloyd Lofton and Joshua Bates, who claim when they reported Kenneth Neal Kerr’s intrusive behavior to supervisors they failed to appropriately act, and it continued for several years.

Kerr was investigated and fired in 2015. He was charged and pleaded guilty in 2016 to invasion of privacy and sexually motivated stalking.

The three men sued their supervisors and the state in 2017.

The State Appeal Board voted Monday to approve the recommendation by the state solicitor general to settle the case for $900,000.