A refugee deal between Australia and the U.S., which President Donald Trump described earlier this year as “dumb,” will proceed in the coming weeks.

The first group of refugees, currently held in Australian detention facilities in Nauru and on Manus Island in Papua New Guinea, are expected to soon depart, according to a statement released Wednesday by Australia’s immigration ministry.

About 50 refugees have been accepted by the U.S., Prime Minister Malcolm Turnbull said in an interview with Australian media. “I just want to thank again, President Trump for continuing with that arrangement,” he said.

Trump has repeatedly expressed disdain for the agreement, struck under the Obama administration, which would see the U.S. accept 1,250 refugees from Australia in exchange for migrants detained in U.S.-run facilities in Costa Rica.

“I am the world’s greatest person that does not want to let people into the country. And now I am agreeing to take 2,000 people, and I agree I can vet them, but that puts me in a bad position,” Trump said in a phone call to Turnbull, a leaked transcript of which was published by the Washington Post in August.

Before being able to enter America, the refugees must undergo strict vetting by U.S. authorities. According to the BBC, up to a third of applicants for the deal are still waiting to be interviewed.

Allegations of abuse and inhumane treatment at the Nauru and Manus detention facilities continue to dog Australia. Earlier this year, the Australian government agreed to settle a class-action lawsuit brought by former and current detainees on Manus Island, which is scheduled to close later this year, who say they suffered physical and psychological harm.

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.