Add print_balances function and balance urls