private static void loadQueues(FileWriter usersQueue, HashSet<Long> vis) throws Exception {
		System.out.println("\nInitiate queue: ");
		ArrayList<File> idList = new ArrayList<File>(Arrays.asList(new File("./UserIds/").listFiles()));

		int cnt = 0;
		float sum = 0;
		for (File file : idList) {
			BufferedReader buff = new BufferedReader(new FileReader(file));
			String id;
			int unique = 0, total = 0;
			while ((id = buff.readLine()) != null) {
				total++;
				sum++;
				Long curId = new Long(id);
				if (!vis.contains(curId)) {
					cnt++;
					unique++;
					usersQueue.write(id + "\n");
					vis.add(curId);
				}
				if (cnt >= 1000000)
					break;
			}
			System.out.println(file.getName() + " total: " + total + " new: " + unique + " percentage: "
					+ (unique * 100 / total) + "%");
			buff.close();
			if (cnt >= 1000000)
				break;
		}
		System.out.println(cnt + " New users added to queue." + " New percentage: " + cnt * 100 / sum + "%");
	}