Session status checking added