Added map_id and map_key functions