Move state manipulation into a function for requesting votes