Two Democratic state senators on Monday introduced a bill that seeks to alter the cashless bail changes lawmakers and Gov. Andrew Cuomo agreed to in the state budget.

The bill from Sens. Jim Gaughran and Monica Martinez would add to the list of offenses that qualify for judicial discretion in determining whether a criminal defendant poses a safety risk. The measure would alter a key criminal justice law change that had been long sought by advocates for several years.

Those offenses include manslaughter, sex crimes including against children, terrorism related charges, felony drug crimes related to drug trafficking, and bribery offenses involving public officials.

“When an individual poses a clear danger to public safety, an unbiased judicial expert must have the discretion to choose whether or not to release them without bail,” Gaughran said in a statement. “My bill advances on the historic criminal justice reforms made this year by maintaining the elimination of cash bail for low-level offenses, and returns a critical protection to judges by allowing them discretion to determine whether an individual poses a credible and identifiable threat to the public.”

The bill comes after Democratic State Committee Chairman Jay Jacobs in interviews acknowledged he discussed with lawmakers his concerns with a bill that would extend access to driver’s licenses to undocumented immigrants. Jacobs, in an interview, said the list of progressive accomplishments like curtailing cash bail, could end up hurting Democrats in moderate districts next year.

Both Gaughran and Martinez represent Long Island Senate districts that were held by Republicans until last year.

“As policymakers, it is our fiduciary responsibility to safeguard the well being of our constituencies,” Martinez said.

“This legislation will allow judges to have discretion when determining whether an individual should be eligible for bail based on their offense and potential danger to society. We cannot turn a blind eye to repeat violent offenders and those who pose a threat to our children, families and friends.”

Senate Republicans scoffed at the proposal.

“Every Senate Republican, including those on Long Island, voted against these changes because we recognized early on that it was part of a dangerous ‘Criminal Bill of Rights’ that put the interests of convicted criminals ahead of the needs of victims, their families and the law-abiding public,” said Senate GOP spokesman Scott Reif.

“These Senators could have chosen to stand up, show some leadership and reject these changes before they became law, but instead they went along with their New York City colleagues and failed their constituents. This legislation isn’t serious, it’s a cynical attempt to cover their butts. And, no one on Long Island is buying it.”

The bill also received the backing of Sen. John Brooks, a Long Island Democrat now in his second term, as well as Sen. Diane Savino of Staten Island. It was also endorsed by Suffolk County District Tim Sini.

“I want to thank Senators Gaughran and Martinez for their diligent work towards improving this legislation and ensuring that public safety is effectively protected,” Sini said. “I also want to thank them for their willingness to engage law enforcement on this important issue.”