Reworking sizePredicate() implementation.