I am not having a problem with the sleep logic. My problem is with a timing logic to write the results to a file on first run and then read those results in five minutes later to display an extra column as historic data !