private void setPrimaryUser(String channel, String state) {
		int ch = new Integer(channel);
		ArrayList<Integer> unsensed = new ArrayList<Integer>();
		if(state.equals("1")) {
			// On
			int currUsers = primaryUsers.containsKey(ch) ? primaryUsers.get(ch) : 0;
			primaryUsers.put(ch, currUsers + 1);
		} else {
			// Off
			int currUsers = primaryUsers.remove(ch);
			currUsers --;
			if(currUsers > 0) {
				primaryUsers.put(ch, currUsers);
			} else {
				unsensed.add(ch);
			}
		}
		try {
			PrintWriter out = new PrintWriter(new FileWriter(modulePath + "PU.txt"));
			out.println(primaryUsers.size());
			for(Integer c: primaryUsers.keySet()) {
				out.println(c);
			}
			out.println(unsensed.size());
			for(int x:unsensed)
				out.println(x);
			out.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}