Change how to check stop port.