Added network connection checks.