Renamed slot_map to slotmap and simplified it to provide the mapping only