Added return clause for session id