The US president is notorious for veering off script.