Finally got the voting rules to be something useful.