Moved from session to session_id and local mem mapping