Added SD card and PID control