The debate inside Germany over refugees is becoming ever more heated, dividing Germans between those wanting to welcome as many people as possible and those who wish to close their doors completely.

What’s getting lost in all this is the long-term perspective. From the viewpoints of both demographics and economics, Germany needs a regular inflow of immigrants, including refugees. Some estimates have put the number at a net gain of several hundred thousand people every year for many years to come. At a minimum, there needs to be at least twice the past decade’s average of 200,000 people. The question is what the proper composition of this immigrant inflow should be.

For reasons of compassion, it behooves Germany to take in a sizable number of refugees, primarily from war-torn Syria. Yet Germany also needs to be prudent. There must be a clearer sense of what is actually feasible, and what the nation’s long-term needs will be.

A comprehensive approach would be best realized by the long-overdue passage of the Immigration Act, which spells out specific criteria and procedures for new arrivals. As an aging country with a highly developed economy, it’s quite easy to foresee when and for whom integration in Germany will work.

The most important thing a foreigner needs in order to integrate into a new society is a job. If an immigrant can start work right away, integration will be quick. He will immediately become a productive member of his new society and his personal life will gain additional meaning and direction, with many direct opportunities to learn about his newly adopted country.