Add code to write to logfile on SD card