Added functions to help connect to wifi.