Atlantic City has agreed to a $3 million settlement in an excessive-force suit by a man who was beaten by five police officers and mauled by a police dog in an incident captured on video.

David Castellani filed a lawsuit against the city and the officers in federal court over his 2013 assault outside the Tropicana Casino. The video of his attack was broadcast on CNN. On Aug. 23 the city agreed to the settlement terms, which also require that the police department demonstrate that its K9s meet the training and certification guidelines of the state Attorney General’s Office.