Added support for multiple simultaneous sessions