Added a session type.
Switched add class to work with sessions.