Adding _get_candidates method.