The prime ministers of Greece, Alexis Tsipras, Spain, Pedro Sanchez, and German chancellor Angela Merkel, met in Brussels on Friday on the sidelines of an EU summit and reached an agreement on handling the migrant and refugee’s crisis.

As highlighted in the agreement, "Greece and Spain are ready to readmit asylum seekers identified in the future at the German-Austria border by German authorities, who have a Eurodac entry from the aforementioned countries. Germany will gradually accept and conclude the family reunification cases in Greece and Spain with a view to guaranteeing family unity."

The full political agreement as reached by the three countries today:

Germany, Greece and Spain underline their support for concluding the revision of the Common European Asylum System in 2018, with the aim of striking the right balance between a fair sharing of responsibility and solidarity.

Until entry into force of the new Common European Asylum System, interim measures established by those member states willing to move ahead collectively on a European level, are the best way to proceed.

On this basis, in response to possible crises, we support adopting additional immediate operational EU initiatives, based on solidarity, including through burden sharing.

We underline that member states at the external border need more joint support, financially and regarding police and asylum officers. Positive actions will be taken swiftly, in support of the five Aegean islands in Greece and in support of Spain.

Greece and Spain are ready to readmit asylum seekers identified in the future at the German-Austria border by German authorities, who have a Eurodac entry from the aforementioned countries. Germany will gradually accept and conclude the family reunification cases in Greece and Spain with a view to guaranteeing family unity.

The operational details of the aforementioned actions will be agreed upon within the next four weeks and reviewed regularly. Cooperation will start immediately once this agreement is reached.