public void run()
	{
		PrintStream out = new PrintStream(outFile);
		DataInputStream in = new DataInputStream(inFile);
		
		try {
		
			while (!suspending) {
				String line = in.readLine();

				if (line == null) break;
				
				if (line.contains(query)) {
					out.println(line);
				}
				
				// Make grep take longer so that we don't require extremely large files for interesting results
				try {
					Thread.sleep(100);
				} catch (InterruptedException e) {
					// ignore it
				}
			}
		//}
		} catch (EOFException e) {
			//End of File
		    System.out.println("GrepProcess: end of file");
		} catch (IOException e) {
			System.out.println ("GrepProcess: Error: " + e);
		}

		if(suspending == true){
    		System.out.println("set suspending false");
    		suspending = false;
		}else{
		    try{
		    complete = true;
		    inFile.close();
		    in.close();
		    out.flush();
		    outFile.close();
		    }catch(IOException e){
		        
		    }
		    
		    System.out.println("GrepProcess complete");
		}
	}