Fixing compile errors after changing the recognizer interface.
the Filter class added to allow multi-level filtering.