MINNEAPOLIS (AP) — A new, nationwide effort to obstruct the recruitment of Westerners for Islamic State militant groups in Syria and Iraq could take some cues from efforts in Minnesota to stop people from joining a terror group in Somalia.

When people began leaving Minneapolis, investigators worked to build trust with the Somali community and raise awareness of the dangers.

Now, the Justice Department is launching pilot programs to help detect American extremists who want to join terror organizations. Locations weren’t announced.

But such a program would be welcome in Minnesota, where authorities are also investigating how some people were recruited to join militants in Syria. At least one Minnesota man died fighting for the Islamic State. A federal grand jury is investigating, and several local Somalis have been subpoenaed.