Implement possibility to add generic predicate