Adding a complete buffer function for sections