Added checkSession