Implement common buffer allocation.
Add timer to driver to measure performance.