Had a bug where would submit incorrect port assignments.
Added some logging for leader flapping test.