Adding predicates to results vector. (reverse-merged from commit 55896b172f5f46da120bf4b14caa8832eff96a1d)