Dundee secured their first William Hill Premiership win of the season in a 3-2 thriller with Livingston at Dens Park.
The Dark Blues opened the scoring in the first half through Simon Murray and then doubled their advantage after the break with Joe Westley on the mark.
However, home nerves were jangling when Clark Robertson scored an own goal with the same player then conceding a penalty, which was converted by Jeremy Bokila.
It looked like both sides would have to settle for a share of the spoils, but the Dundee were awarded a penalty of their own deep in stoppage time, which was blasted home by substitute Callum Jones.
The hosts started brightly but Livi had the first opportunity of the game in the seventh minute when Robbie Muirhead beat Ryan Astley on the right wing and then advanc