Making the number of DMA buffers a parameter.