Add port scanner function