It may take Donald Trump’s entire first term and some additional funding from Congress, but his plan to deport at least 2 million immigrants with criminal records is no pipe dream.

The president-elect might need to employ a loose definition of “criminal” and he’d likely need to target legal immigrants with criminal records as well as those who are undocumented. Immigration experts, however, say the enforcement apparatus Trump would require to reach his deportation goals is in place, and the strategies have already been tested by his predecessors.

“I don’t think it will be difficult for him to get up to 400,000 to 500,000 deportations per year with expansive definitions of who’s a criminal,” said Randy Capps, director of research for U.S. programs at the nonpartisan Migration Policy Institute. “Because the Obama administration did that.”

During President George W. Bush’s final years in office and most of President Barack Obama’s first term, any undocumented immigrant charged with a crime but not necessarily convicted was a deportation priority. Obama issued more lenient enforcement guidelines in 2012 and 2014.

Deporting a green card or visa holder who is legally in the United States is more complicated, but most aggravated felonies — such as murder, rape or drug trafficking — qualify a noncitizen for removal.