from Line 118 - 121 you reference the rangeToUpdate by index instead of looping through. It's possible to have security groups setup in multiple VPCs