DMA transfers, and some cleanup.