@Override
	public void run() {
		while (crawler.pageDone == false || crawler.contentUrls.size() > 0) {
			if (crawler.contentUrls.size() != 0) {
				saveAsText(crawler.contentUrls.remove());
			} else {
				try {
					sleep(3000);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
			}
		}
	}