Sleep inside busy loop so as not to use up CPU.