Added a flag for different function generation strategies (NAME_ONLY, MODULE_AND_NAME, ARRAY)