An amended bill to close New York’s so-called “double jeopardy loophole” was formally introduced late Thursday after lawmakers came to an agreement earlier this week on the legislation, which will allow state prosecutors to bring charges against certain individuals pardoned of federal crimes.

The legislation would only allow state charges against pardoned individuals who worked for the president while they were in office; worked on their election for the presidency or on their transition team following an election; is a family member or directly related to a family member; or was an accessory to any of the aforementioned individuals in committing a crime.