Macedonia’s parliament passed on Friday an amendment to the constitution to rename the country Republic of North Macedonia, as agreed with Greece to put an end to a 27-year dispute, Reuters reported.

Eighty-one deputies in the 120-seat parliament voted in favor. Representatives of the opposition VMRO-DPMNE, who opposed the agreement with Greece, boycotted the vote.

The countries struck the deal on the new name in June, but Macedonia will start using it only after the parliament in Athens also ratifies the agreement.

Greece blocked its neighbor’s aspirations to EU and NATO membership over the use of ‘Macedonia’, which it said implied territorial claims by to a Greek province of the same name.