Added support for multiple sessions at the same time