Use an infinite loop, rather than sleep.