Adding session time-out check and stop script