Updated SD card script