Renamed loop to sequence