Elect best predicate

Related to #6 and #7