More work on abn_lookup script.