Simplified DMA code.

Simplified DMA code.