Adding loop and loopInteval options

Removing unused test