Properly initialize buffers.