LISBON, Portugal (AP) — Olhanense beat FC Porto 2-1 at home Sunday to escape last place in the Portuguese league and keep alive its hopes of avoiding relegation with one round to play.

Per Kroeldrup and Federico Dionisi scored for the hosts before Hector Herrera netted late for Porto.

Olhanense moved level on points with new bottom-side club Pacos Ferreira, after it drew 0-0 at Rio Ave.

Belenenses is one point ahead of the pair after drawing 1-1 at Estoril.

The last-place team will be relegated, while the second-to-last side will enter a playoff with a team from the second division to see who plays in the topflight next season.

Pacos Ferreira hosts Academica in the last round. Olhanense visits Setubal, and Belenenses hosts Arouca.