private void queryForTileBars(){
		//TODO: BUGS EVERYWHERE IF THIS ISN'T RESET TOOK ME 5 HOURS TO FIGURE THIS OUT
		selectedChapters = new ArrayList<>();
		for(int i = 0;i < repository.size();i++){
			selectedChapters.add(new ArrayList<Integer>());
		}
		
		//Reset all buttons text to the Magnify text.
		for(int i = 0;i < magnifyRevertButtons.size();i++){
			magnifyRevertButtons.get(i).setText("Magnify");
		}
		
		//Clear all old tilebars.
		for(int i = 0;i < tileBarViews.size();i++){
			if(tileBarViews.get(i) != null){
				tileBarPanels.get(i).remove(tileBarViews.get(i));
			}
		}
		tileBarViews.clear();
		
		//Get the text from the query fields.
		getTextFromFields();
		
		//Update Tilebars.
		for(int i = 0;i < repository.size();i++){
			tileBarViews.add(new TileBarView(repository.get(i), i, thisInstance, USE_CHAPTER_FREQUENCY_COLORING, coloringMode, 20, 20, redQueryList.get(i), greenQueryList.get(i), blueQueryList.get(i), redQueryStrings.get(i), greenQueryStrings.get(i), blueQueryStrings.get(i)));
		}
		String buildTileBarString = "";
		for(int i = 0;i < tileBarViews.size();i++){
			buildTileBarString += "Title: "+repository.get(i).getTitle() +"\nAuthor: "+repository.get(i).getAuthor()+"\n";
			buildTileBarString += tileBarViews.get(i).getTextInformation()+"\n\n";
		}
		displayTextTileBar.setText(buildTileBarString);
		updateTileBarInterface();
	}