Cycle now cycles as intended.

Old function was overwriting the first line with the second line