election: Implement missing functions