Finally a way to detect which files are changed based on the index