Now works correctly if other (non-shared) buffers exist