Replaced blocking Thread.Sleep with unblocking Task.Delay