Added robust looping over "jets"