Allow adjustable buffer size