Working in progress for demo CoDyCo
working in progress for balancing