Made a loop a generator that wasn't for some reason