Improved port/host logic