Added API to Session class