static void ProcessHandles() { var users = new List<UserStatus>(); foreach (string handle in handles) { var request = WebRequest.Create(string.Format(URL, handle)); var stream = request.GetResponse().GetResponseStream(); string line; using (var reader = new StreamReader(stream)) { line = reader.ReadToEnd(); } users.Add(new UserStatus(handle, line, time)); Thread.Sleep(500); } var htmlDoc = new HtmlDoc(); htmlDoc.AddUsersToTable(users); htmlDoc.WriteHtmlDoc(); }