Generate prefixes automatically.