Add error handling if index file isn't found.