Added WiFi setup code from @mikerr