public synchronized void send(Object x) {
		while (!writable) {
			try {
				wait();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			// Wait here until writable becomes true.
		}
		;
		local = x;
		writable = false;
		notify();
	}