Added usage of GetSessionSafe method.