Added the first version of addToBuffer.php