Port state control