Changed the script to use a weighted average to determine how many sites to download