added cl argument for number of times you want to run the glitch function