Index layout and other setup