Loop on/off working