Updated for working SD card and WiFi