Modified connectWIFI