[ADD] CreatePathIndex-function.