Made index in file header-size dependant.