Added repeat, repeatInc functions