Remove unused file and add an index