puoi mettere un delay oppure la richiesta di premere un bottone per terminare, non ricordo sinceramente il comando.