Oof, this just sits and spins? I think I'd prefer the less-portable sleep solution, since at least it doesn't burn CPU. Any cleverer way to do this? I haven't looked thru the lua std library (I actually don't know lua that well :)) but there has to be something...