Updated vote_simulator so that it can be used as a module