Centralised buffer code