Solving the migrant problem