Two men have pleaded guilty to acting as illegal agents of the government of Iran on charges stemming from monitoring a Jewish center in Chicago and Americans who are members of an exiled Iranian opposition group, the U.S. Justice Department and FBI announced Tuesday.

Majid Ghorbani, 60, an Iranian citizen and U.S. permanent resident living in Costa Mesa, Calif., pleaded guilty Monday to one count of violating U.S. sanctions, according to court records. Ahmadreza Mohammadi-Doostdar, 39, a dual Iranian-U.S. citizen, pleaded guilty Oct. 8 to one count of conspiracy and one count of acting as an undeclared agent of the Iranian government, court filings show.

Ghorbani was arrested in August 2018, and Doostdar that September, and both were accused of conducting surveillance and collecting information about Americans involved with the Mujahideen-e Khalq, or People’s Mujahideen of Iran, an Iranian dissident group that seeks regime change in Iran.

“The Iranian government thought it could get away with conducting surveillance on individuals in the United States by sending one of its agents here to task a permanent resident with conducting and collecting that surveillance,” U.S. Attorney Jessie K. Liu of the District of Columbia said in a statement.

Doostdar is to sentenced Dec. 17, and Ghorbani is to be sentenced Jan. 15 following agreements with prosecutors to plead guilty to reduced charges, court filings show. Each has been in custody since his arrest.