Added support for empty index files