Made better loops that make more sense.