A Smart and Effective Way to Safeguard Elections