Alterations to ping timeout detection code