Detecting buffers