A man wanted in connection with an attack on two teens outside of a Brooklyn mosque Monday surrendered to detectives Wednesday.

Christopher Vallaro, 31, arrived at the 72nd Precinct in Brooklyn with his lawyer and participated in a lineup, according to 7 ABC.

The beating took place outside of the the Madine Muslim Community Center on Third Ave. near 53rd. St.

Vallaro is reportedly being charged with assault, but not a hate crime. That’s because authorities believe that the motive for the attack was that the two teens were allegedly harassing the man’s girlfriend, according to the report.

The man was still heard to yell "You Muslims are the cause of all the problems of the world" and calling the youths "terrorists,” according to a statement from the New York chapter of the Council on American-Islamic Relations.

You can watch surveillance footage of the attack below. Be warned that the footage is graphic: