Essex battled through to a four-wicket win against Leicestershire in their LV= County Championship Division Two clash at Grace Road.
Ten days after the humiliation of being bowled out for 20 by Lancashire, it was a nervy and edgy victory for Essex, who scrambled over the line with 3.4 overs to spare.
Chasing a target of 161 in 40 overs, they slipped to 79 for five in the 27th over and it needed a 66-run stand between Ryan ten Doeschate and James Foster to put them back on track.
After seeing their victory bid initially held up by Leicestershire's tailenders, Essex made a dreadful start to the chase by losing their first two wickets for 13 runs in five overs.
Jaik Mickleburgh was lbw to Alex Wyatt, offering no shot, and Matthew Hoggard trapped Nick Browne plumb in front.
It became 34 for three when Owais Shah edged Wyatt to wicketkeeper Niall O'Brien and Tom Westley fell in the same fashion. And when Mark Pettini drove a catch to cover off Ollie Freckingham the alarm bells were jangling.
But Foster and ten Doeschate put on 66 in eight overs, with Foster making 42 off 27 balls before popping up a catch to midwicket.
By then Essex were just about home and dry, and ten Doeschate, with an unbeaten 37, and Graham Napier - who hit 13 not out - saw them to the win that earned 23 points. Wyatt claimed 3-35 in 13 impressive overs for the hosts, who take six points from the match.
Leicestershire began the final day on 91 for four, leading by 37 runs, and when Shiv Thakor and Matthew Boyce were out to successive deliveries with only 18 runs added, it suggested there could be a quick finish to the game.
Thakor nicked a catch behind off the last ball of a Napier over and Reece Topley trapped Boyce lbw with his first delivery.
The situation hardly improved when Michael Thornely and Freckingham also departed within a couple of runs of each other. Both of them fell to ten Doeschate, with Thornley caught down the leg side attempting a pull and Freckingham lbw.
At that stage it looked likely Essex could be batting before lunch. Instead, with Jigar Naik leading the way, Leicestershire's last two wickets added another 79 runs in 33 overs spread over two hours.
Naik and Hoggard, who made 24 off 73 balls, shared a stand of 43 in 21 overs. Then Naik was joined by Wyatt in a last-wicket partnership worth 36 in 12 overs.
Wyatt was finally out lbw to Topley for 17, leaving Naik unbeaten on a season's best 47 off 141 balls. Ten Doeschate claimed 4-28 and Topley 3-53.