Added Network status checking