Add automatic index file