Added Internet connectivity check