Greece’s government has revised legislation that redefines rape after criticism from human rights groups and senior judge officials.

Women’s rights activists had converge in parliament to protest the proposed bill, known as Article 336, that redefined sexual consent.

Amnesty International, a vocal opponent to the proposed law, was pleased with its revision. “This is a historic victory, not just for the campaigners who have fought long and hard for this day, but for all women in Greece,” said Eirini Gaitanou, the head of Amnesty International’s office in Greece.

READ MORE: Greece’s definition of rape may no longer focus on ‘consent’

The proposed law, part of a new penal code submitted just weeks before snap elections, had raised fears that convicted rapists would be given greater leniency.

Justice Minister Michalis Kalogirou amended the bill and clarified  that sex without consent would be considered rape and be punishable under the law.

“Whoever attempts a sexual act without the consent of the victim is punished by imprisonment of up to 10 years,” the revised law states.

READ MORE: Web Words: Your views on social media from trigonometry to rape

MPs will vote for the revised law on Friday.It is expected to be put to MPs on Friday.