Preparing for top and bottom buffers.