Hearts survived a second-half scare from Scottish Championship side Inverness Caledonian Thistle before racing away to make it into the Premier Sports Cup quarter-finals.
The hosts, fresh off the back of an impressive 1-1 draw with Benfica as they exited Europa League qualifying, made plenty of changes but still appeared in control in the opening 45 minutes.
That was after Alfie Bavidge had an early strike ruled out for offside, with Hearts responding quickly when Christian Borchgrevink nodded them into the lead.
However, a two-minute double from Caley Thistle in the second half turned the game on its head.
Firstly, Ryan Duncan fired in an equaliser when he was played in one-on-one by a brilliant Danny Devine ball. Moments later, Bavidge had Inverness ahead when he drove round the keeper and slid the ball home.
Hearts, though, responded quickly. Sabah Kerjota - who hit the crossbar in the first-half with a close-range shot - danced by his man and hung up a cross which Rogers Mato powered in with a bullet header.
There was a nervy wait for the next goal, but like their visitors Hearts were able to score a quickfire double that put them into untouchable territory.
The third came from the spot, when Kerjota drew a foul from Noa Butin and Calvin Miller tucked away from 12 yards, and the fourth was also set up by the diminutive Albanian winger.
This time, his cross was deflected but Claudio Braga was still able to get a shot at goal. Inverness keeper Ross Munro was able to parry, but only up into the air, allowing teenager James Wilson to nod home from a few yards out.
Inverness started to tire while Hearts kept their foot on the gas, and they made it a five-goal performance when he got on the end of Borchgrevink's cross and found the top corner with his finish.
With the last kick, they made it six when they broke on the counter-attack. McPake played Miller through on goal and he got his second, and Hearts' sixth, when he rolled it under the goalkeeper.