I think Billy's script already contains that part...
The checkreg alias stuff....?