A fired Milwaukee police officer has been sentenced to 24 years in prison for sexually assaulting a woman after he responded to her 911 call two years ago.

U.S. District Judge J.P. Stadtmueller on Monday said the actions of former officer Ladmarald Cates showed evidence of “a very depraved mind.”

The Milwaukee Journal Sentinel reported that Cates’ sentence was shorter than the 30 years recommended by the prosecution.

Assistant U.S. Attorney Mel Johnson said a lengthy sentence was necessary both to punish Cates and to deter other members of the police department from breaking the law.

In January, Cates was convicted of violating the woman’s civil rights by engaging in aggravated sexual abuse while acting under color of law. He testified that the sex was consensual.