Disney’s solid third quarter was driven by a $1 billion box office haul from “Toy Story 5” and the strong draw of U.S. theme parks that helped to offset continued weakness from international tourism.

Disney also announced a global short-form content sharing deal with TikTok on Wednesday. The agreement will bring Disney-focused fan-created content from TikTok to the Disney+ app.

Shares climbed more than 3% before the market opened on Wednesday.

The Walt Disney Co. cautioned earlier this year that its theme parks division would likely see modest growth due in part to declining tourism from abroad.

International tourism in the U.S. has waned for a number of reasons after President Donald Trump’s return to the White House, including tariffs, a crackdown on immigrants, and repeated jabs at alliednations.