Added BOOL to bypass the deprecated Session element