public void run(){
		if (mode==1){
			ready=false;
			kill=false;
			this.open(filename,auIndex);
		}
		else {
			while(true){
			ready=false;
			kill=false;
				if(mode==2){
				this.open(filename,auIndex);
				}
				if(kill) break;
			}
		}
	}