Add support for filter in th compiler.