I think the Patriot Act, along with NSA surveillance is a serious part of this solution. However, I have no proof of it, because, if I did, methods and security would be given away to our enemies. I will just call it a strong suspicion.
I have heard a number of people on this site criticize the Patriot Act, NSA intercepts, Guantanimo, etc. I think this is very naive.
The Federal government, along with NYPD deserves a lot of credit, along with those congressmen who voted for the Patriot Act.