Make input buffering configurable