@Override
	public void map(String key, String value, Context context) {
		String[] toks = value.split(" ");
		int count = 0;
		for(String s : toks) {
			context.write(s, "1");
			count++;
			//Artificial delay
			if(DEBUG && count % 100 == 0) {
				try {
					//50 ms delay for every 300 words
					Thread.sleep(50);
				} catch (Exception e) {
					
				}
			}
		}
	}