Cruz’s comments follow both the news Thursday that Sebelius would resign and President Barack Obama’s remarks Friday praising Sebelius’ work and nominating Sylvia Mathews Burwell, who is currently director of the White House Office of Management and Budget, as her replacement.

Cruz, who added that Obamacare is a disaster and that Sebelius “should’ve resigned a long time ago,” attributed the change to the upcoming midterms.

“[Senate Democrats are] running scared because every one of them in their races across the country, they’re underwater,” Cruz said. “They’re losing because Obamacare has hurt so many millions of people.”

“I thought the most revealing statement that the president made was the smug statement about the quote ‘final score,’” Cruz said referencing Obama’s comments from Friday’s ceremony.

“He has viewed Obamacare from Day One as just a political battle,” Cruz continued. “This is not a political battle.”

Cruz would not dismiss using Burwell’s upcoming nomination process as a means to attempt to repeal Obamacare, saying instead it is an “ideal opportunity” to examine the law and that there will be plenty of time for the Senate to assess her qualifications.

“I think Burwell presents an ideal opportunity to examine the failures that are Obamacare,” Cruz said.

“Four years ago, reasonable minds could have differed over whether this thing might work,” Cruz said. “Today, seeing the disaster, seeing the train wreck that is Obamacare, in my view, it is the essence of pragmatism to acknowledge this thing isn’t working, we need to start over, we need to repeal every word of it.”