private String[] findLinks(String pageHTML, String currentPageURL){
		System.err.println("FindLinks : " + pageHTML);
		ArrayList<String>links = new ArrayList<String>();
		
		//imgur has changed their html classes, we'll use this to make changes easier
		String postDelimiter = "id=\"imagelist";
		
		if(pageHTML.contains(postDelimiter)){
			sindex = pageHTML.indexOf(postDelimiter); //find where posts start
			int oldsindex = sindex;
			links.add(getNextLink(pageHTML)); //adds the next link to list
			while(sindex >= oldsindex){
				oldsindex = sindex;
				links.add(getNextLink(pageHTML)); //adds the next link to list
				updateStats();
				if(queue.size() >= QUEUE_THRESH*2){
					try {
						//System.err.println("Main BIG Sleeping: " + TIME_PAUSE*queue.size()*queue.size());
						Thread.sleep(TIME_PAUSE*queue.size()*queue.size());
					} catch (InterruptedException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}else if(queue.size() >= QUEUE_THRESH){
					try {
						//System.err.println("Main Little Sleeping: " + TIME_PAUSE*queue.size());
						Thread.sleep(TIME_PAUSE*queue.size());
					} catch (InterruptedException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
			}
		}
		
		String[] foundLinks = new String[links.size()-1];
		for(int i = 0; i < links.size()-1; i++){
			foundLinks[i] = "http://";
			foundLinks[i] += links.get(i);
		}
		return foundLinks;
	}