Ping fixes for timeout schedule
Changed R_ALIVE's function a bit