Switching to range-based for loops; NFC.