Use generic function to configure the path.