Keep Alive Logic Modified