The only problem with the above script is that it only grabs the masked address ($address). Our network uses host masking, which isn't suitable for any akill list.