Updating buffer