Channel balancer written in zsh