Added network connectivity check