Added some features to the class session class.