Added support for multiple sessions to increase computation speed