Dead code in figuring out sessions.