Adding in a new to index directory function.