Now works from the file index.