Update buffer