Move functions to votingpool struct and make them private