Code now recursively searches for candidates.