Touched up functions in portscanner