Added session management.