Removed and trimmed Thread.Sleep