Introduce buffer struct