public void run(){
		while(keepRunning){
			synchronized(syncObject){
				if(wait){
					try {
						syncObject.wait();
					} catch (InterruptedException e) {
						e.printStackTrace();
					}
				}
			}
		}
	}