Move election handling into code on cron