Rotherham gave their bid for Championship survival a boost after battling back for a potentially crucial 1-1 draw against Blackburn.
Lewis Wing's late equaliser meant Paul Warne's side avoided a sixth straight loss and although they remain in the bottom three, they now have their destiny in their own hands.
The Millers play their final game in hand on Tuesday at Luton, where victory would lift them above Derby and out of the drop zone ahead of the league finale next weekend.
Adam Armstrong's 26th goal of the season looked like it was going to hand Tony Mowbray's side the three points but they were guilty of being wasteful in front of goal and were punished by Wing.
Rotherham had the first opening as Jamie Lindsay fired just wide after Ryan Nyambe's header fell kindly for the Scotsman to volley from the edge of the box.
The lively Armstrong then raced in for a 17th-minute opener. He snatched the ball away from a dithering Angus MacDonald and then slotted it calmly past Jamal Blackman.
It took an alert save from Blackman save to deny Armstrong a second before Rotherham midfielder Ryan Giles set up a good opening for Chiedozie Ogbene but his free header flew wide of goal.
Blackburn were still crafting chances of their own and Sam Gallagher would have been disappointed not to turn in a header at the back post.
Joe Rothwell was also off target twice from range before the break for the visitors.
The home side looked poised to level but Freddie Ladapo was denied a tap-in at the far post, with Nyambe just getting in the way following Michael Smith's low shot.
Blackman kept Rotherham in it as he managed to claw away Bradley Johnson's powerful header from close range.
Giles was then teed up by Ladapo but lashed his shot high into the stand.
Ben Brereton was the next Rovers player to be disappointed as he failed to hit the target after having a clear sight of goal from 15 yards out, and Rothwell again threatened for the visitors but his shot flashed across the face of goal.
Chances were also falling for Rotherham with Ogbene racing in down the right flank but failing to test Thomas Kaminski.
However, just when it was beginning to look like Blackburn would hold on for the points, Rotherham drew level in the 86th minute when Wing powered a low free-kick into the bottom corner.
A chaotic finale saw Rotherham substitute George Hirst denied by a strong save by Kaminski before Blackburn threatened on the counter-attack until Giles' intervention.
Blackman denied Armstrong again in the final minute after he was rolled in one-on-one by Harvey Elliott as Rotherham earned a point which could yet prove key in the battle to avoid the drop.