Adds path generator.