@rokiroki I would use a while loop and compare the current date with the time it should run (VAR_RUNAT = current + 2 hours) WHILE (currenttime < VAR_RUNAT) sleep(1000)! , or a for and compare the index with sleep. I.e i < 5 sleep(60000)! Would sleep 5 minutes.