Added scope parameter to the predicates for the predicate/module definition/reference searches.