public String getBestLink(int[] seedArray, int[] leechArray, String mediaType){
		/*
		 * Determines the best link to pull the torrent from.
		 */
		float sizeMinimum;
		float sizeMaximum;
		if (mediaType.toLowerCase().equals("movie") || mediaType.toLowerCase().equals("movies")){
			sizeMinimum = Variables.movieSizeMin;
			sizeMaximum = Variables.movieSizeMax;
		}
		
		else if (mediaType.toLowerCase().equals("album") || mediaType.toLowerCase().equals("albums")){
			sizeMinimum = Variables.albumSizeMin;
			sizeMaximum = Variables.albumSizeMax;
		}
		else{
			sizeMinimum = Variables.musicSizeMin;
			sizeMaximum = Variables.musicSizeMax;
		}
			
		try{
		String bestChoice = null;
		int greatestDifference = 0;
			for (int i = 0; i < seedArray.length; i++){
					if (sizeArray[i] > sizeMinimum && sizeArray[i] < sizeMaximum){
						if (seedArray[i] - leechArray[i] > greatestDifference){
							greatestDifference = seedArray[i] - leechArray[i];
							bestChoice = linkArray[i];
					}
					
				}
			}
			return bestChoice;
		}catch (Exception e){
			return null;
		}
	}