Image courtesy of: ESPNcricinfo
Neil Wagner took a three-wicket haul to leave New Zealand just four wickets away from victory against Sri Lanka going into the final day in Christchurch.
Starting off the day on 24/2, Sri Lanka captain Dinesh Chandimal and Kusal Mendis converted their 15-run partnership into a 117-run stand, during which both batsmen brought up their fifties.
Mendis ended up making 67, which came off 147 balls and included 10 boundaries, before he was dismissed by Wagner.
Angelo Mathews managed to score 22 before he was forced to retire hurt due to a hamstring injury.
Chandimal went on to score a 228-ball 56, which included five boundaries, before he was caught by Henry Nicholls at short leg off the bowling of Wagner.
Niroshan Dickwella was clean bowled by Tim Southee for 19, while Roshen Silva was caught behind off the bowling of Wagner for 18.
Dilruwan Perera and Suranga Lakmal managed to amass an unbeaten 23-run partnership before stumps was called.
Dilruwan finished on 22, which came off 60 balls and included three boundaries, while Lakmal also struck three boundaries during his 22-ball 16.
Wagner was the pick of the bowlers with three wickets, while Southee snapped up two and Trent Boult chipped in with one.
Sri Lanka ended day four on 231/6 and will continue batting on Sunday at 11:00 local time or 22:00 GMT (the previous day).