Jonjo O'Neill, who was secured his first Gold Cup as a trainer, said: "AP was brilliant on him, he knows him so well.
"Our big worry was keeping him in the race as, if he makes mistakes, he gets behind.
"A lot of work has gone into him at home so was a great team effort from the yard.
"He only came right in last 10 days or so and we weren't really confident.
"He flowered in the last few days and it was spot-on timing."
More top news
Temperatures tumbling again tonight with a widespread sharp frost and lows of -5C or -6C and icy spots in places
The victim was shot in the arm in a 'drive-by' shooting.
Ewan McGregor was joined by co-stars Jonny Lee Miller, Ewen Bremner and Robert Carlyle at the world premiere of the Trainspotting sequel.