Loop functions

These functions are used to implement repeating, incrementing loop within a script.