Using msg.loopVariable instead of msg.counter