public void run(){
		boolean running = true;
		while (running){
			synchronized(outputQueue){
				while (outputQueue.size() == 0){
					try {
						outputQueue.wait();
					} catch (InterruptedException e1) {
						// TODO Auto-generated catch block
						e1.printStackTrace();
					}
				}
				
				String line = outputQueue.remove();
				
				try {
					output.write(line);
					output.flush();
				} catch (IOException e) {
					//TODO: Handle this.
				}
				try {
					Thread.sleep(250);
				} catch (InterruptedException e) {}
			}
		}
	}