Unbeaten Livingston left it late to take all three Scottish Championship points against struggling Airdrieonians.
Andrew Shinnie turned home a neat ball from Liam Sole in stoppage time to break through the battling visitors' back-line.
Stephen Kelly had given the hosts the lead on the half-hour mark after being put through by Scott Pittman.
Airdrie fired back immediately as Dylan MacDonald's cross from the bye-line fell neatly for Aaron Reid to find the net.
Livingston pressed through the second half, but it took until the 91st minute for Shinnie to find the winner.