Switched to Thread.Sleep