Added port connection check.
Added port connection check.
Added port connection check.