Replace ConstructPath with sprintf