These gaps were identified during post-war investigations to prepare for future conflicts with the terrorist group.