Added support for more than one log in one session