Add ability to read index files