Championship leaders Burnley scored twice in stoppage time - including a 100th-minute winner - as they came from behind to beat 10-man Rotherham and extend their unbeaten run to 16 league matches.
Manuel Benson curled home a wonderful equaliser before Halil Dervisoglu slotted home a rebound 10 minutes into 13 added on at Turf Moor.
Ben Wiles had nodded the Millers into a shock early lead, only for Jay Rodriguez's close-range header, his ninth goal of the season, to bring Burnley level.
Rotherham substitute Chiedozie Ogbene restored the visitors' lead midway through the second half but Cohen Bramall was sent off for two yellow cards in the space of seven minutes.