Added missing initSession() call.