Added ability to activate/deactivate sessions.