Added some work with sessions.