BERLIN - German Chancellor Angela Merkel’s conservatives and their left-leaning Social Democrat (SPD) coalition partners agreed on Thursday to tighten asylum rules, reaching a compromise on how to stem an influx of migrants that topped one million last year.

The new measures include a two-year ban on family reunions for asylum seekers who are granted limited refugee protection and speeding up the deportations of failed applicants, said Economy Minister Sigmar Gabriel, announcing the deal. A dispute over tighter immigration rules has been straining the ruling coalition, which includes Merkel’s Christian Democrats (CDU) and their Bavaria-based Christian Social Union (CSU) sister party, as well Gabriel’s SPD. All three parties are eager to show voters that, despite deep divisions, the government is in control of the refugee crisis before three state votes in March and a general election next year.

‘The mood is good,’ Gabriel told reporters, signaling unity among the three parties after weeks of tension over CSU leader Horst Seehofer’s threat to take Merkel’s government to court if his demand to stem the flow of asylum seekers is not met. The new rules, which have been in the works since November and entail a programme for integrating refugees, also include speeding up the process for applicants from so-called safe countries and reducing financial support for asylum seekers.

Merkel, whose popularity has slumped over her handling of the crisis, is also holding a meeting with the heads of Germany’s 16 states who are demanding more government funds for German courses, schools, kindergartens and policing.German towns and cities say the influx of 1.1 million asylum seekers last year is pushing their resources to the limit and they would not be able to accommodate more newcomers if the numbers do not go down.

The number of asylum seekers crossing the German border from Austria every day fell to some 700 over the last several days from more than 2,000 earlier in the year. German officials say the decrease is linked to winter and warn of a spike in spring.This is the second bundle of asylum measures agreed by the government, which pushed a first package of tighter immigration rules in October.

The German and Italian leaders Friday pledged to tackle Europe’s migrant influx but failed to resolve discord on an EU deal with Turkey to limit arrivals, a day after Berlin moved to tighten asylum rules.

Unknown assailants hurled a hand grenade at a German shelter for asylum seekers Friday, police said, in a shocking first in a country where attacks against refugee homes are on the rise. The grenade was filled with explosives but it was not immediately clear whether it was equipped with a detonator, a police spokesman in the Black Forest town of Villingen-Schwenningen said in a statement.

It did not explode and no damage or injuries were reported. “Security staff discovered the intact explosive device and notified the police,” the statement said, adding that the grenade was thrown over the fence at the facility at about 1 am (0000 GMT). German Interior Minister Thomas de Maiziere blasted the attack as “unacceptable” and “cowardly”, on rolling news channel N24.

He called for a swift probe to bring the perpetrators to justice. Justice Minister Heiko Maas expressed disbelief about the “horrific” incident, saying he would call a meeting of his counterparts in Germany’s 16 states in March to discuss a stronger crackdown on far-right crimes.

“With explosives flying at refugee homes, we mustn’t wait until there is the first death,” he said. Prosecutor Johannes-Georg Roth said it would be decisive to the investigation whether the grenade was live and only by chance did not detonate. If so, “we are dealing with the most serious of crimes”, he told reporters. A 75-member special police commission was formed to carry out the probe, bringing in personnel from the Office for the Protection of the Constitution, Germany’s domestic security watchdog. Homes for asylum seekers have been repeatedly attacked in Germany, which saw the arrival of nearly 1.1 million people fleeing war and poverty last year.

Police in Villingen-Schwenningen said about 20 residents of the shelter were temporarily evacuated but were able to return to their rooms in the early morning hours. In the statement, they asked witnesses with information about the incident to come forward. The Federal Crime Office on Thursday reported 173 attacks against refugee shelters in 2015, more than six times the number recorded during the previous year. Another 10 cases were reported in January.

Several eastern European countries have sealed their borders, and Hungary’s hardline Prime Minister Victor Orban reiterated Friday that ‘migration is a security issue’, linking it to ‘the threat of terrorism and crime’.

Bulgarian Prime Minister Bokyo Borisov demanded the closure of the external borders of the passport-free Schengen area, arguing that rather than spend money on migrants, Europe should stop them from coming. With Greece under growing EU pressure to better control the bloc’s outer borders, Human Rights Watch on Friday said that ‘turning the country into a warehouse (for migrants) is no solution to Europe’s refugee crisis’. In Germany, the inflow has fallen from thousands to hundreds a day in recent weeks amid harsh winter weather, and the government is desperate to keep it that way.

‘We must seize the window of opportunity that has opened,’ said Merkel’s migrant policy coordinator Peter Altmaier.

‘Our goal must be for refugee numbers not to rise again after the end of the winter storms but for them to keep going down.’ So far this year, more than 55,500 people have crossed the Mediterranean to Europe’s shores, the International Organization of Migration said.

Of the total, 244 died on the way to Greece and Italy, a far higher toll than at the same time last year, adding that perhaps traffickers were rushing as they feared more border clampdowns.

‘Clearly something has changed, because these boats are less seaworthy, and they seem to be leaving packed in greater numbers,’ he said. ‘So that speaks to perhaps a panic in the market that this is not going to last much longer.’ Moreover, forty percent of Germans want Chancellor Angela Merkel to resign due to her refugee policy, which saw the country take in 1.1 million asylum seekers last year, an Insa poll for Focus magazine showed on Friday. The poll of 2,047 Germans, which Insa conducted from Jan. 22 to Jan. 25, showed 45.2 percent believed Merkel’s refugee policy was not a reason for her to resign.