public ArrayList<Entry> getNextEntriesForUsers(ArrayList<User> listOfUsers,
			ArrayList<Entry> listOfEntries) {

		boolean foundNext = false;
		int index = 0;
		Entry entry;
		ArrayList<Entry> listOfNewEntriesForUser = new ArrayList<Entry>();

		for (User user : listOfUsers) {
			foundNext = false;

			while (!foundNext) {
				/* boundary of index check. */
				if (index < listOfEntries.size()) {
					entry = listOfEntries.get(index);

					/*
					 * If this is our user and the timestamp is not the same,
					 * add to new list.
					 */
					if (user.getName().equals(entry.getUserName())
							&& entry.getTimeStamp().getTime() > user
									.getLastSeenTimeStamp().getTime()) {

						listOfNewEntriesForUser.add(entry);
						foundNext = true;
					} else {
						index++;
					}
				} else {
					return null;
				}
			}
		}
		return listOfNewEntriesForUser;
	}