Eoin Morgan made a century as Middlesex dodged the heavy showers at Lord's to put themselves in a potentially match-winning position against Lancashire going into the final day.
Resuming on 275/3 and with a slender lead of nine, Morgan led his side past 300 and reached his century in the morning session to add his name to the list of batsmen in the England frame with a first-class ton so far this year.
He fell shortly afterwards to Tom Smith for 103, and Middlesex briefly wobbled when his overnight partner Neil Dexter was dismissed for 51 and Joe Denly for just eight - bowled by the impressive Kyle Hogg.
But John Simpson and Ollie Rayner counter-attacked in fine fashion during the afternoon with a fine partnership of 127.
Simpson made an even 50 before he was dismissed by the veteran Glen Chapple, but it was Rayner whose innings stood out - the England Lion struck ten fours and one six as he made 77 from 107 balls.
His dismissal, with the lead a healthy 193, prompted a declaration from Chris Rogers, and despite a heavy downpour, there was time for Tim Murtagh to remove Luis Reece and leave Lancashire reeling at 15/1 overnight.