Removed useless new leader message.
Refactored graphing code.