Adding the mapid