Finished pre-index file functionality