Renamed ui var to session.