Use TreeMap to map id's