Rename $do to $chain and create better $do.