Simple buffering library