Canada is planning on changing the law to make it harder for asylum seekers to get refugee claims if they’ve already been rejected by other countries, including the United States, according to a report.

Amendments were introduced in the government’s budget bill after thousands of asylum seekers crossed the Canadian border after the US rejected their claims, the Globe and Mail reported on Tuesday.

Border Security Minister Bill Blair said the legislation would put an end to “asylum shopping.”

“There’s a right way to come to the country to seek asylum and/or to seek to immigrate to this country, and we’re trying to encourage people to use the appropriate channels and to disincentivize people from doing it improperly,” Blair said.

The measure would add another level of ineligibility to people seeking asylum.

Immigration officers could refuse a claim if the asylum seeker has already filed a claim in another country that rejected it.

It’s based on the premise that Canada’s immigration system is similar enough to the US that if a claim is rejected there it would likely be rejected in Canada, too.

The measure would apply to people who arrive at an official border crossing between Canada and the US.

It wouldn’t apply to people already on Canadian soil.

Nearly 20,000 people seeking asylum crossed the US border in 2018.