SW: Moved monitor definitions.
SW: Initial balancing logic. Only basic structure.
SW: Style fix to debug printing.