Add methods to modify and use the buffer