Added timeout to ping command