Pakistan finished day two of the second Test against Bangladesh on 87-1 to leave the match in Mirpur evenly poised.
A knock of 144 from Shakib Al Hasan - his best first-class score - helped Bangladesh post a total of 338 and the removal of Pakistan opener Mohammad Hafeez for 14 further raised home hopes.
Hafeez had hit 143 as Pakistan recorded an innings victory in the first Test at Chittagong, but even with him gone after edging a Nazmul Hossain delivery behind to Mushfiqur Rahim, Pakistan were able to steady the ship.
By stumps, Taufeeq Umar had reached 44, with eight fours, and Azhar Ali was unbeaten on 26.
Shakib helped his team add 51 in a shortened first session to reach lunch at 285-5, but he was finally out following a mix-up with Mushfiqur which enabled Taufeeq to throw down the stumps at the non-striker's end.
Mushfiqur was out himself next ball for 40 as he gloved an Umar Gul delivery behind to wicketkeeper Adnan Akmal to bring the Bangladeshi tail into play, and they failed to cover themselves in glory.
It became 331-8 when Elias Sunny was bamboozled by a doosra from Saeed Ajmal and trapped lbw for 12.
And in the next over, new batsman Nazmul made a swift exit, run out by Abdur Rehman as Bangladesh attempted a second run to keep Shahadat Hossain on strike.
A defiant six from Shahadat brought some late relief but the innings ended when another Ajmal doosra caught Robiul Islam on the pads with the ball destined for his leg stump.
As was the case on day one, play was delayed this morning because of fog in Mirpur. But unlike Saturday, when they slipped to 43-4, this time it was Bangladesh who were in control when play got under way.
Mushfiqur rightly survived an appeal for a catch at short leg off Ajmal, then slogged the same bowler for six in his next over.
Three times Pakistan appealed confidently for lbw against Shakib, but each time he was correctly given not out.
And he took advantage as, looking increasingly comfortable, he compiled his highest score in any form of the game.