Factored out path -> name to reuse