Sleeping currently works on windows.  Won't work on linux but at the
moment none of this code does so eh!