Added Function to Check Wifi