Changed callback struct
Improvewd elections
Added scenario tests