Switched getPath to named function expression.