Downloader: added limits for number of threads