Script for connecting to wifi.