public void run() {
		while (!threadTerminate) {
			// If we are not processing a request and we have a query, handle it
			if (!processingQuery && queryRequests.size() > 0)
				processQuery();
			
			// This thread should only check requests every few seconds or so
			// The thread should not be demanding at all
			try { Thread.sleep(1000); } catch (InterruptedException e) { }
		}
	}