Its use was regulated by church and state law as a means of demonstrating guilt, of determining guilt and of exacting punishment, but its legality and application changed depending on any number of factors including country, date, church, state, ideology and political context.