Rename 'files_at_index' function for clarity