Add support for filters.

Only tag filter supported so far.