Added GetSessionId code