bidirectional sync files by name

I have a rather odd need for Hazel, and haven't quite figured out a fully working solution. I'm working with the following directory structure:
FolderA:
|- FolderB:
| | BarTag.txt
| | BazTag.txt
| Foo.txt
| BarTag.txt
| BazTag.txt
The aim is to have only files with "Tag" somewhere in their name be the same in both A and B, while keeping any file without the tag out of B. I've set up complimentary rules for A and B as: If (all) - (name) (contains) {Tag} and (Date Last Modified) (is after) (Date Last Matched) then (Sync) in to folder (FolderA)/(FolderB) respectively.
With some brief testing I found this solution to work with one exception: it wont remove files from its synced directory if it is deleted from its own. So, files accumulate and sync, but if one is deleted it remains in the other directory.
Is there some rule that compares the existence of items against last scanned? Or some other trick to get this working?
FolderA:
|- FolderB:
| | BarTag.txt
| | BazTag.txt
| Foo.txt
| BarTag.txt
| BazTag.txt
The aim is to have only files with "Tag" somewhere in their name be the same in both A and B, while keeping any file without the tag out of B. I've set up complimentary rules for A and B as: If (all) - (name) (contains) {Tag} and (Date Last Modified) (is after) (Date Last Matched) then (Sync) in to folder (FolderA)/(FolderB) respectively.
With some brief testing I found this solution to work with one exception: it wont remove files from its synced directory if it is deleted from its own. So, files accumulate and sync, but if one is deleted it remains in the other directory.
Is there some rule that compares the existence of items against last scanned? Or some other trick to get this working?