The Broward Sheriff’s Office has opted to settle a long-simmering lawsuit with a deputy in its employ.

The agency reached a $390,000 settlement with Jeffrey Kogan in Broward Circuit Court on Monday. Kogan, a patrol officer who’s been employed by the BSO for nearly two decades, filed suit against his employer in 2013 for allegedly retaliating against him. According to Kogan’s attorney, Fort Lauderdale litigator Tonja Haddad Coleman, the conflict between the two parties began during a homicide investigation in April 2013.