Adam Eaton’s bloop double in the 16th inning drove in two runs and the Arizona Diamondbacks outlasted the Pittsburgh Pirates 4-2 on Sunday.

Eaton’s career-high fourth hit came during his seventh at-bat with A.J. Pollock and Didi Gregorius on and two outs. Eaton fought off a 1-0 pitch from Kris Johnson and dunked the ball into shallow left-center. A sprinting Andrew McCutchen failed in his attempt at a diving catch.

Arizona remained five games behind Cincinnati in the race for the second NL wild-card spot. Pittsburgh’s lead in the NL Central dwindled to one game over St. Louis.