What's the function of the buffer lock?