The European Union is launching a 348 million euro ($391 million) aid project to help the most vulnerable refugees in Turkey — part of a landmark deal with Turkey aimed at curbing the flow of migrants to Europe.

Up to a million refugees living outside of camps would receive debit cards that would be topped up every month, which would allow them to buy food and meet other needs.

The project, to be launched by EU Humanitarian Aid and Crisis Management Commissioner Christos Stylianides on Monday, is billed as the largest humanitarian program financed by the EU.

The EU has pledged 3 billion euros to help Syrian migrants in Turkey and agreed to relax visa restrictions for Turkish citizens traveling to Europe.

However, talks on visa liberalization have stalled.