Add delay so the CPU isn't completely consumed.