Updated DMA config code