Historically in the United Kingdom, public gay sex often resulted in a charge and conviction of gross indecency, an offence only pertaining to sexual acts committed by males and particularly applied to homosexual activity. Anal penetration was a separate and much more serious crime that came under the definition of buggery. Buggery was a capital offence between 1533 and 1861 under UK law, although it rarely resulted in a death sentence. Importuning was an offer of sexual gratification between men, often for money. The Sexual Offences Act 1967 permitted sex between consenting men over 21 years of age when conducted in private, but the act specifically excluded public lavatories from being "private". The Sexual Offences Act 2003 replaced this aspect with the offence of "Sexual activity in a public lavatory" which includes solo masturbation.