YOU literally couldn't have timed it better.
If the finish line had come just a metre earlier then Errol Hughes' Hammer Foot would not have taken out Monday's Ladbrokes Cash In Stakes (450 metres) at Kennerson Park.
The Forbes trainer was stunned to see Hammer Foot ($6) run down heavily-backed race favourite Samshu ($1.55, Amanda Ginn) in the last few strides of the event at Bathurst, picking up her second career win in the process.
Hammer Foot got home by the smallest margin possible - a nose - on her way to beating Samshu and Outlaw Tom ($26, Rob Littlefield) in a time of 26.29 seconds.
"I didn't think she had got there," Hughes said.
"I thought the one had won it and wasn't confident at all. She's becoming a bit more consistent of late, gaining some manners and getting better.
"She usually likes to get out in front but they were a bit too quick for her today. She does run a nice 450m though."
Samshu had got out to the early lead in the race and gained a quick two length advantage on the field.
It looked like it was going to be a two-dog battle at the finish when Fernando Alonso ($4.60, Ricky Brewer) showed the sort of speed his Formula 1 namesake would display as he came up along the outside of the leader.
But Hammer Foot, Outlaw Tom and Lola Pepper quickly joined the party to make it a line of five winning hopes sweeping into the home straight.
Hammer Foot had the pace to just run down the favourite in an upset result.