Added support for turning WiFi on and off