Sequences in a loop