The whole program is inside a while loop, the loop can remember the last run of data, a new test replaces the previous data. An application is added into the loop to timestamp the samples, set intervals between them. The frequency of the sample and number of samples determine the length of each test. In order to have the best results there In order to make sure that the test does not run too long an OR statement is added to limit the test to a certain time frame.