In many of the cases where people are brought to court for cottaging, the issue of entrapment arises. Since the offences are public but often carried out behind closed doors, the police have found it easier to use undercover police officers who would frequent toilets posing as homosexuals in an effort to entice other men to approach them for sex. These men would then be arrested for indecent assault. Such practices were severely curtailed after a judge decided the police officer in the case had consented to the contact if he had desired and required the defendant to touch him with sexual intent in order to have evidence of a crime.