Expose label generation function