Added support for multiple sessions