Switzerland powered past Serbia 3-2 in their final World Cup Group G match on Friday to advance to the round of16 for the third straight time.

The win sealed second spot in the group with six points, level with group winners Brazil, and the Swiss will next face Portugal for a place in the quarterfinals.

Stream on ESPN+: LaLiga, Bundesliga, more (U.S.)

Switzerland took the lead through Xherdan Shaqiri‘s deflected shot in the 20th minute, making the winger nicknamed ‘the pocket rocket’ the first player from his country to score at three World Cups.

Their joy only lasted six minutes with Serbia, needing a win to have any chance of progressing, scoring twice through Aleksandar Mitrovic and Dusan Vlahovic to turn the game around.

But Switzerland responded with a two goals either side of the break from Breel Embolo and Remo Freuler to prolong their stay in Qatar while eliminating the Serbs.