Added a Spinwait function.