Extracted 'viable model' search into a method.