fwc: Add primitive filter functions.