President Donald Trump visited a Mack Trucks plant in Macungie, Pennsylvania, on Tuesday as he sought to move past the Iran war and refocus public attention on the U.S. economy. The trip to the Lehigh Valley facility, in a battleground state critical to the upcoming midterm elections, was his first major public event outside Washington since he signed an interim agreement to end the conflict with Iran.

The president was given a private tour of the truck plant, but his subsequent speech often resembled a reelection rally more than an economic message, according to the Associated Press. Trump listed a series of longstanding political grievances, the AP reported, and spent considerable time highlighting personal achievements, including a Ultimate Fighting Championship match he staged on the White House lawn to celebrate his 80th birthday.

The visit came as Trump works to put the Iran war and the higher gasoline prices it caused in the rearview mirror, with the November midterm elections approaching. The White House has sought to pivot from foreign policy to economic messaging, and Trump’s appearance at the industrial facility in eastern Pennsylvania fit that pattern.

However, the president’s remarks only briefly touched on promoting Republican candidates seeking office in the midterms, according to the AP. Instead, he devoted a significant portion of his speech to personal grievances and boasts, at times resembling the campaign rallies that defined his previous runs for office.

The Mack Trucks plant in Macungie, a suburb of Allentown, is a symbol of American manufacturing in a region that has been a political battleground. Trump’s visit was part of a broader effort to court working-class voters in Pennsylvania, a state he won in 2016 but lost in 2020.

The event also served as an attempt to change the subject from the Iran war, which has weighed on the president’s approval ratings and driven up fuel costs. Trump signed an interim agreement to end the conflict in recent days, allowing him to claim progress on a campaign promise while pivoting to domestic issues.

But the AP report indicated that the president’s message did not consistently stick to economic themes. Trump’s discussion of the UFC fight on the White House lawn, which he attended in May, drew particular attention, highlighting his tendency to veer off-script.

Trump’s trip to Pennsylvania was the latest in a series of visits to battleground states as he prepares for the midterms, where Republicans are defending a narrow majority in the House and a number of Senate seats. The president has been an active campaigner, but his recent events have often been characterized by tangential remarks and personal animus.

The Associated Press reported that the president made only passing references to the broader economic record his administration has touted, including tax cuts and deregulation. Instead, his remarks focused on past electoral grievances and his personal conflicts with political opponents.