WASHINGTON (Washington Post) - Eleven days before the general election, President Donald Trump took the stage at a rally in New Hampshire to the cheers of hundreds of rejuvenated supporters.
"I need to open with a very critical breaking news announcement," Mr Trump said, as the crowd excitedly cut him off with applause, already knowing the news.
"The FBI has just sent a letter to Congress informing them that they have discovered new e-mails pertaining to the former Secretary of State Hillary Clinton's investigation."
The crowd cheered and began to chant: "Lock her up! Lock her up! Lock her up!"
As soon as that letter landed, Mr Trump's campaign felt it was a game changer, a last-minute opportunity that they so direly needed.
Mrs Hillary Clinton and many of her former staff now point to that letter as the chief reason that she lost the election - a prominent reminder of her shortcomings in the final days of a race that had become much closer than her supporters had ever expected.
Now, more than six months later, Mr Trump has decided against locking up his Democratic opponent as he had repeatedly promised, and instead fired FBI director James Comey on Tuesday (May 9).
In doing so, his administration pointed to that same Oct 28 letter as evidence that Mr Comey had mishandled the investigation of Mrs Clinton and is not suited for the job.
The decision - which comes amid an FBI investigation of ties between Trump's campaign and Russian officials - shows once again that Mr Trump is more than willing to take whatever position or action will serve him well in the moment, even if it contradicts his earlier positions.
"When it comes to strategy, he's like a day-trader on crack," said Mr John Weaver, a Republican strategist who has worked on the GOP presidential campaigns of Senator John McCain, Arizona, and Ohio Governor John Kasich.
"There's no central thread in their messaging... It's always: 'What do we have to do to get through this?'"
On the campaign trail, Mr Trump routinely took numerous positions on a single issue, allowing his supporters to select whichever one they liked best and blaming the media for any confusion. Since taking office, he has abandoned many of his campaign promises with little explanation.
He has wavered on whether Mr Comey was a good guy or not. In April 2016, Mr Trump said that he heard "fantastic things" about Mr Comey.
Two months later in July, as Mr Comey recommended not charging Mrs Clinton, Mr Trump slammed the decision and called the system "rigged".
Three weeks before the election, Mr Trump accused the FBI of "covering up to protect her". But 11 days after that, when Mr Comey reopened the investigation, Mr Trump announced that he has "great respect for the FBI for righting this wrong".
At a rally the next day, Mr Trump praised Mr Comey, saying that it"took a lot of guts" to do "the right thing".
Soon after winning the election, Mr Trump said he respects Mr Comey "a lot".
At a reception two days after inauguration, Mr Trump warmly hugged Mr Comey and declared him "more famous than me". At one point, Mr Trump even appeared to blow Mr Comey a kiss.
But last week, Mr Trump turned again, tweeting: "FBI Director Comey was the best thing that ever happened to Hillary Clinton in that he gave her a free pass for many bad deeds!"
And then came the unexpected firing this week.
Throughout all of this, Mr Trump was steadfast in his support of the investigation into Mrs Clinton - applauding the steps Mr Comey took and always calling for more. That is a major reason why Mr Comey's firing this week was so jarring.
As CNN's Anderson Cooper interviewed White House counsellor Kellyanne Conway late on Tuesday evening, he asked about the inconsistency.
"Why now are you concerned about the Hillary Clinton e-mail investigation when, as a candidate, Donald Trump was praising it from the campaign trail?" Cooper asked.
"I think you're looking at the wrong set of facts here," Ms Conway said. "In other words, you're going back to the campaign. This man is the president of the United States. He acted decisively today."
Cooper cut her off: "That makes no sense. He said one thing as a candidate and now he's concerned as president?"
"It makes complete sense," Ms Conway said.
The White House released the letter that Mr Trump sent to Mr Comey letting him know that he was fired, in which the president provides no detailed reason for the dismissal but notes: "I greatly appreciate you informing me, on three separate occasions, that I am not under investigation."
The rationale comes in a two-and-a-half page memo from Deputy Attorney-General Rod Rosenstein, who criticises Mr Comey's "handling of the conclusion of the investigation of Secretary Clinton's e-mails" and the former director's "refusal to accept the nearly universal judgment that he was mistaken".
Mr Rosenstein focuses on two key moments: July 5, when Mr Comey announced at a press conference that Mrs Clinton should not face charges but also shared "derogatory information" and her, and Oct 28, when Mr Comey sent the letter to Congress announcing he had come across new e-mails that may pertain to the investigation.
When news of that letter first broke, Mr Trump was preparing to speak at the rally Manchester, New Hampshire. He dispatched retired Lieutenant-General Michael Flynn to entertain the crowd while he composed a response.
"I love our New England Patriots - man, are they doing good right now. Wow," Mr Flynn said. "Shout out for our Patriots. Unbelievable."
Mr Flynn went on to be the president's national security adviser for 24 days, after which he was fired for misleading the vice-president and other senior officials about his communications with a Russian diplomat.
When Mr Trump finally took the stage, the crowd was pumped up and ready. There was a new energy in the room.
"Hillary Clinton's corruption is on a scale we have never seen before," Mr Trump said. "We must not let her take her criminal scheme into the Oval Office. I have great respect for the fact that the FBI and the Department of Justice are now willing to have the courage to right the horrible mistake that they made."
But by Wednesday, after his firing of Mr Comey had rocked Washington, the new president and his aides were trashing Mr Comey's job performance as a longstanding problem.
"He wasn't doing a good job," Mr Trump told reporters at the White House. "Very simply, he was not doing a good job."