Made extraction of loops a little easier for vectors.