Added loop for sending slides at regular intervals