Added network connectivity checks.