Buffer magic