Dynamic buffer