Fixed for WinRT where Thread.Sleep is missing