Added second constructor to Session.