Fixed SD card problems, buffer overflow. Made sure that doesn't happen again