Updated with actual working code

The last one was from an earlier draft that I rewrote from scratch.
(though much of that code will be borrowed for later use)
Filtering by tag name works