Update PortIndex.