Always generate local functions