Carter Graham finished 4 for 5 with a double, a triple, and two RBIs to help No. 3 Stanford (41-14) claim the inaugural Pac-12 Baseball Tournament title with a 9-5 win over No. 4 Oregon State (44-15) Sunday night.

With the win, Stanford has won 16 consecutive games, the longest winning streak for the Cardinal since posting 18 straight victories back in 1996. That team finished just shy of the College World Series. With this Cardinal squad capturing both the regular-season and tournament titles in the Pac-12, it’ll look for a better result at the NCAA Tournament, where it learned Sunday it would host a regional.

Graham’s one-out triple in the first inning got the Cardinal rolling early. Stanford brought three runs across the plate in the opening frame, two of which came off a ridiculous homer from freshman Braden Montgomery. The ball traveled 468 feet to straight over center field, Montgomery’s 16th homer of the season.

After the fourth, Stanford held a 5-2 lead. Oregon State fought back in the fifth, though. Jacob Melton cracked a two-out single that brought in two runs to bring the Beavers within just one. A pair of scoreless frames from the Cardinal in the bottom of the fifth and sixth, then an error in the top of the seventh let Oregon State knot things up at 5-5.

Then the Cardinal bats woke up once again. Drew Bowser led off the seventh with a solo homer—his 12th of the season and fourth of the Pac-12 Tournament—to reclaim the lead for Stanford. After Adam Crampton plated a second run with a double in the seventh, Kody Huff went the other way for a two-run home run in the eighth—his 11th of the year and third of the tournament—to give the Cardinal some more breathing room.

Tommy O’Rourke drew the start on the mound for Stanford. He provided three strong innings, striking out four Oregon State batters while giving up just one hit and one earned. Drew Dowd came in to give the Cardinal two innings, but struggled. He allowed four hits and three earned runs while walking three Beavers. In the sixth, he was replaced by Ryan Bruno. Bruno (5-1) earned the win after two innings with five punch-outs and just one hit allowed (one earned). Brandt Pancer picked up his second save of the year with two innings of work, allowing just a single hit and nothing more.

Oregon State’s Reid Sebby was saddled with the loss after pitching one and two-thirds innings and giving up three hits and four runs.

With the win, Stanford earned the league’s automatic bid to the NCAA Tournament.

Bowser (3B) and Crampton (SS) were both named to the All-Tournament team after the game. Crampton hit .467 (7-for-15) with two runs scored, a double, and three RBI with a handful of highlight plays in the field. Bowser batted .444 (8-for-18) and connected for four home runs and two doubles while scoring six runs and driving in eight.

Oregon State’s Garret Forrester was named the tournament’s MVP. The rest of the Pac-12 All-Tournament team included Gavin Logan (Oregon State, C), Garen Caulfield (Arizona, 2B), Ethan Gourson (UCLA, SS), Daniel Susac (Arizona, DH), Justin Boyd (Oregon State, OF), Jacob Melton (Oregon State, OF), Michael Curialle (UCLA, OF), Josh White (Cal, P), and Kyle Luckham (Arizona State, P).