In 1998, the Penal Code Act was amended to make the offence of rape gender-neutral and to move away from a phallus-specific definition. The Amendment introduced a minimum sentence of 10 years to a maximum term of life imprisonment and made bail unavailable to persons accused of the offense. The amendment also made mandatory HIV testing for persons convicted of rape, and in the case wherein rape was accompanied by violence or the rapist was unaware of his or her HIV+ status, a minimum sentence of 15 years with corporal punishment was introduced. For cases wherein the convicted person was aware of his or her HIV status, the minimum sentence was set at 20 years imprisonment with corporal punishment. Excerpts of amended language available here.