Adds pieceBuffer