Would, possibly, a better way to do this be using nmap and nlog?