Setup header and index