During the Cold War, the RCMP developed and used a "fruit machine" which measured pupil dilation in relation to pictures of men and women to determine whether someone was gay.