Former New York Mayor Michael Bloomberg has apologized for backing the police department’s “stop-and-frisk” policy during his time in office.

The policy permitted police to momentarily detain and pat down or search a person suspected of criminal activity. The vast majority of those stopped were African American and Latino men.

“I can’t change history. However, today I want you to know that I realize back then I was wrong and I’m sorry,” Bloomberg said while addressing a congregation at the Christian Cultural Center, a black church in Brooklyn, on Sunday.

Read more: Bloomberg says sorry for 'Stop-and-Frisk' policy