Removed Task.WaitAll. Could be done with async await as well.