Functional Group Count (Fragment Count)

I am trying to utilize the functional group count and ring count functions in the "Models" tool in MS 2017.R2 and I find that the program cannot identify most functional groups. When I export the model scrip file to try to alter the pearl script that runs the fragment counter it is not so clear where the library of functional groups is defined. So, can I alter what each functional group is defined as so that I can capture a broader group of fragments? Has anyone improved this nearly useless functional group identifier?

e.g., The fragment identifier cannot identify the amide functionality or phenyl fragment in this molecule and they are defined in the "Model" functional group count and ring count scripts but pop up as "0" in the study table output. Any help is appreciated.