A scheduler to run a process at intervals