Added some sessions functionality