President Obama planned to give an economic pep talk Monday to mark the five-year anniversary of the financial crisis.

But as reports emerged of the deadly shooting nearby at the Washington Navy Yard, the president found himself juggling two sharply different topics — addressing the tragic mass shooting, before launching into a blistering assault on congressional Republicans for their budgetary demands.

“I cannot remember a time when one faction of one party promises economic chaos if it can’t get 100 percent of what it wants. That’s never happened before. But that’s what’s happening right now,” Obama said.

White House Press Secretary Jay Carney was later peppered with questions on the tone of the president’s remarks. While Obama opened his address by calling the victims of the mass shooting “patriots” and vowing to get to the bottom of what happened, he quickly pivoted to his remarks about congressional Republicans.