Add DEBUG_MODE for debugging serial port.