Improved Portscan script