A bill that would legalize marijuana in New York has the support to pass on the floor of the state Assembly, the top Democrat sponsoring the bill in the chamber on Friday said.

Assembly Democrats on Thursday evening discussed the bill behind closed doors, a conversation sources said went well.

“I do think progress is being made,” said Assembly Majority Leader Crystal Peoples-Stokes. “We had a very good, detailed conversation with all of our colleagues and at the end of the day, I think we have more than enough of the capacity to pass it on the floor.”

She added, “All I can say is there is enough to pass it in the Assembly.”

Assembly Speaker Carl Heastie earlier in the day said there was “an eternity” of time between today and the session’s scheduled end on Wednesday to reach an agreement.

Sen. Diane Savino, a proponent of the bill in the state Senate, said the multiple days of conversation in her conference have also gone well.

Lawmakers there still have specific questions about the bill, but agree on the end goal of legalizing retail marijuana and expanding the medicinal cannabis program, Savino said. There will likely be changes to the bill, including more money for law enforcement and education funding, she said.

Asked if the bill could gain a vote next week in the Senate, Savino said, “If we continue in the direction we’re going and we’re able to address the concerns raised by members, again, I’m cautiously optimistic.”