Add docs for loop and loopInterval.