Added logger to script for persisting votings.