public void setInputScript(BufferedReader rd) {
		inputScript = rd;
		if (buffer.isWaiting()) {
			try {
				String line = inputScript.readLine();
				buffer.enqueue(line + "\n");
			} catch (IOException ex) {
				throw new ErrorException(ex);
			}
		}
	}