More hacking... I think I may now understand how features are filtered by featureSet in the code