Added a check for wireless and ethernet