Updated to support multible election profiles