Update some code in LineBalanceAdvisor