Make URI generation configurable