@SuppressWarnings("deprecation")
	public Share[] startRateUpdate(String[] sharenames) throws IOException{
		String namebuffer = "";
		Share[] returnshare = new Share[sharenames.length];
		int counter = 0;
		for (int i = 0; i < sharenames.length; i++) {
			namebuffer += sharenames[i]+",";
		}
		namebuffer = URLEncoder.encode(namebuffer);
		financeurl = new URL("http://download.finance.yahoo.com/d/quotes.csv?s="+namebuffer+"&f=nl1c4&e=.csv");
		try {
			iputstream = financeurl.openStream();
		} catch (UnknownHostException e) {
			return alternativProvider(sharenames, namebuffer);
		}
		freader = new InputStreamReader(iputstream);
		bfreader = new BufferedReader(freader);
		String sbuffer = bfreader.readLine();
		while(sbuffer != null){
			sbuffer = sbuffer.replaceAll("\"", "");
			String[] sbuf = sbuffer.split(",");
			sbuffer.split(",");
			double parser = Double.parseDouble(sbuf[1]) * 100;
			returnshare[counter] = new Share(sbuf[0], (long)parser);
			returnshare[counter].setFinanceName(sharenames[counter]);
			returnshare[counter].setExchange(sbuf[2]);
			sharelist.add(sbuffer);
			sbuffer =  bfreader.readLine();
			counter++;
		}
		iputstream.close();
		return returnshare;
	}