In 1992, legislation amended the "Criminal Code" to re-establish this rape shield provision with strict guidelines for when and how previous sexual conduct could be used by a defendant at trial. The reform was enacted by Parliament after the 1991 ruling, "R. v. Seaboyer" had struck down the previously existing rape shield law (enacted in 1982) as unconstitutional. Bill C-49 amended the Criminal Code provisions that govern the admissibility of evidence of sexual activity; refined the definition of consent to a sexual act; and restricted the defence that an accused had an honest but mistaken belief that the accuser had consented. The 1995 Supreme Court judgment in the case of British Columbia Bishop Hubert O'Connor ("R. v. O'Connor") led to Bill C-46, which limited the production of a complainant's personal counselling records to the defence in sexual offence cases. Bill C-46 was tested in "R. v. Mills", and upheld by the Supreme Court in 1999.