Buffer queue interface.

Closes #14.
Closes #13.