obviously 6 and 20 need to be externalised before we merge, also lose the commented dead code (that's what git history is for :-). Also need to make sure this code works in the case where the user didn't ask to repeat the experiment on a schedule.. e.g. RepeatEveryUntil(0,0) needs to do something sensible.