LOOP 7 & 8.