Rudimentary implementation of unique per-query IDs