Adding predicate to functor method