Added the DSW balancing algorithm.