Simplify buffer handling.