Added SD card logging