Facing an uncertain path to confirmation after ordering a deeply flawed voter citizenship review that seemingly focused on naturalized citizens, Texas Secretary of State David Whitley is apologizing to state lawmakers for the way his office bungled its rollout of the review — but he is still holding firm behind the overall effort.

In a letter sent to state lawmakers late Wednesday, Whitley largely defended the review efforts as a legally sound exercise, and he did not admit that his office had erred when it mistakenly threw into question the eligibility of tens of thousands of U.S. citizens or when it sent counties lists of voters it knew very likely included naturalized citizens.

Instead, Whitley vaguely admitted there were some shortcomings to the data his office used to flag almost 100,000 registered voters for citizenship reviews and noted his office should have devoted more time to “additional communication” with local and state officials to “further eliminate anyone from our original list who is, in fact, eligible to vote.”

“After close consultation with the Texas Department of Public Safety (DPS), the counties, and members of the Texas Legislature, I have discovered that additional refining of the data my office provides to county voter registrars, both in substance and in timing, is necessary to ensure a more accurate and efficient list maintenance process,” Whitley wrote in the letter obtained by The Texas Tribune.

Whitley — who has not been confirmed by the Texas Senate — has faced weeks of intense scrutiny for questioning the citizenship of registered voters based on driver’s license and ID card data that didn’t account for people who became naturalized citizens and for immediately referring the list of flagged voters to the state’s top prosecutors before the list was properly vetted.

He’s facing calls from Democrats and civil rights groups to rescind his guidance to counties on how to review voters’ citizenship status and halt the entire process. But Whitley’s apology was more focused on the way he released that data.

Whitley blasted the news of potential noncitizens on the rolls on a Friday afternoon, and it was quickly amplified by top Republicans, including Gov. Greg Abbott and President Donald Trump, who made unsubstantiated or false claims of illegal activity and voter fraud.

In his letter to lawmakers, Whitley said his announcement “could have been communicated better” by including “more substance” from the advisory his office sent out to counties detailing the release of the data and “by emphasizing my goal to ensure that no qualified voters are removed from the rolls.”

“I recognize this caused some confusion about our intentions, which were at all times aimed at maintaining the accuracy and integrity of the voter rolls,” Whitley wrote. “To the extent my actions missed that mark, I apologize.”

Whitley sent the letter to lawmakers almost a week after facing a blistering confirmation hearing before the Senate Nominations Committee and on the eve of the committee’s next meeting. In a change of plans, state Sen. Dawn Buckingham, R-Lakeway, said earlier this week that she no longer anticipated calling Whitley’s confirmation up for a vote Thursday as she originally said she had planned to do.

Almost three weeks ago, Whitley announced his office had found approximately 95,000 Texans on the voter rolls who had identified themselves to DPS as noncitizens while obtaining driver’s licenses or ID cards. But that data did not note how many of those individuals had become naturalized citizens and then legitimately registered to vote after receiving those documents.

A Whitley deputy has since acknowledged the secretary of state’s office knew there was a “significant possibility” naturalized citizens would be on the list because driver’s licenses don’t have to be renewed for several years, and naturalized citizens are not required to update DPS on their citizenship status.

Within days of announcing the list, other major flaws emerged in the data, including the erroneous inclusion of more than 20,000 naturalized citizens who had registered to vote at DPS offices after proving their citizenship.

In his letter to lawmakers, Whitley noted his office “devoted significant time and effort to educating local registrars” about the citizenship review efforts. But “in hindsight,” Whitley admitted more work was required on that data “before announcing the number of people who may not be eligible to vote.”

Despite immediately referring the list of voters to the attorney general’s office for possible prosecution, Whitley has since sought to characterize the state’s list of flagged voters as a “preliminary” document that required additional vetting by local officials. (The list was sent to the attorney general even before counties received it for review).

At his confirmation hearing last week, Whitley doubled down on his defense of the bungled citizenship review efforts, which have prompted three federal lawsuits over claims he is unconstitutionally targeting naturalized citizens, but at times struggled to answer technical questions about the flawed data at the heart of it. Whitley has admitted that his office knew the list could contain mistakes but has not publicly acknowledged the inclusion of naturalized citizens on the list.

Combined with his decision to provide the list of flagged voters to the attorney general’s office, that’s cost him the votes of some Democratic senators whom he will likely need to be confirmed.

If his nomination makes it out of the Republican-dominated Nominations Committee, Whitley needs a two-thirds majority vote among the lawmakers present when the full Senate considers his nomination. Republicans are in the majority in the 31-seat chamber, but Whitley will require at least some Democratic support unless several senators are gone the day of his vote.

He has been making the rounds with senators since his rocky confirmation hearing, meeting with individual members as recently as Tuesday.