Rewriting part of the dma engine