New function for matching with different filters and basic filters. Notice that new function is called checkForMatchObj and not checkForMatch.